660 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
49
views
query when HttpSession expires, without extending the session
I would like to create an endpoint/servlet in tomcat to expose the state of an HttpSession -- basically how long until it expires -- for the sake of giving the user a warning that they will be logged ...
-1
votes
1
answer
73
views
How to properly store Logged-In user data in HttpSession in spring Boot?
Why is Code 1 working but not Code 2 when accessing session attributes?
I'm facing an issue where my session attribute works fine in Code 1, but not in Code 2.
Code 1 (Working)
session.setAttribute(&...
0
votes
0
answers
47
views
how can I create new http sessions on the controller level during request to endpoint?
how can I create new active httpsessions on the controller level during request to endpoint? I am not using any dependency for sessions in springboot...just vanilla httpsession from TomCat. thnanks
I ...
0
votes
1
answer
72
views
When the session times out, a double click is required to go to the login page
I use this code. After setting passwordChanged, when I click (first request) then it invalidates the session in authenticationServices.logout(getHttpServletRequest()), and on the next request it goes ...
0
votes
1
answer
40
views
Multiple HttpSession Objects for One Logged-In User
This is a HeapDump snapshot from my application running locally, "standardSessionFacade" is Tomcat implementation for HttpSession, now I am logged in with only a user then why are there 5 ...
0
votes
1
answer
55
views
How to save/retrieve Java HttpSession to/from WebSphere database
We have a standard J2EE/Struts internal web application that has been used in production for many years. We save many Java objects into HttpSession then retrieve them for one request to another. It ...
3
votes
1
answer
546
views
Security Context with HttpSessionSecurityContextRepository always returns 403 after successful authentication, Spring Boot 3.3
Im revising and learning Spring Boot. With the 3.3 latest version, there are issues saving the security context in the session.
What I am trying to do is have a regular Server side stateful session ...
0
votes
0
answers
17
views
session.invalidate() is sometimes not working and not destroying the session object. What should I do? [duplicate]
Public class Logout extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
HttpSession ...
-1
votes
1
answer
152
views
How to share HttpSession between pages with Playwright Java
I am writing a test with Playwright, for a java application setting attributes in the user httpsession, to be shared across different pages.
The test opens the app in one page, adds an attribute to ...
0
votes
1
answer
1k
views
session not invalidated properly getting error UT000010: Session is invalid
I upgraded Struts version 2.3 to 6.0. It's built successfully but when I am trying to login to the application I am getting
UT000010: Session is invalid HubC5VAM4TUaSwQgPtLbbmAEXTAZii0VTrfXfNJw
on ...
0
votes
1
answer
1k
views
Field httpSession in required a bean of type 'javax.servlet.http.HttpSession' that could not be found
I'm getting this error
***************************
APPLICATION FAILED TO START
***************************
Description:
Field httpSession in com.example.splitwise.Controllers.UserController required ...
2
votes
1
answer
432
views
ASP.NET Core 6.0 / Razor pages / add info about currently logged in user to the Session
I have an ASP.NET Core 6.0 web app using Razor pages. For authentication, I'm using the MS Identity subsystem / OpenID Connect, with Azure Active Directory as my identity provider. This all works ...
-1
votes
1
answer
79
views
Swift HttpSession decode arrays
I have a code to send post requests to a NestJS api. It works, but there's a request that returns the following json: (Multiplied the entrires to help understand the context)
[
{
"...
0
votes
1
answer
64
views
Returning response data from HttpSession post
I created an external HttpPOST.swift file for handling http requests easy. It works great, but when i try to pass the response data to a dictionary, i get an error:
Cannot assign value of type '...
1
vote
0
answers
89
views
Can a python requests.Session break? If yes, what should I do?
I have python workers. They use a similar code than the one below:
import requests
class Requester:
def __init__(self):
self.session = requests.Session()
def get(self):
...