Skip to main content

Questions tagged [httpsession]

An Java interface used by the servlet container to create a session between an HTTP client and an HTTP server.

httpsession
1 vote
1 answer
53 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 ...
theMyth's user avatar
  • 157
0 votes
0 answers
98 views

Openapi-Generator does not set configuration parameters in angular

We are working on a project with a Angular 17.3 Frontend and a spring Backend. Our API is defined in an OpenApi-yaml and generated by openapi-generator ("@openapitools/openapi-generator-cli":...
user24538254's user avatar
0 votes
0 answers
10 views

Do I need to call HttpSession.getSession() method everyt time to keep session alive? [duplicate]

I am reading about HttpSession interface and I am not sure if I understand session expiry correct. Please correct me if I am wrong in this rough case example scenario: The client visits website and ...
Andyally's user avatar
  • 995
0 votes
0 answers
82 views

spring security + form login + redis session storage -> keep coming out anonymous User

I have been struggling for days because after logging in and receiving the welcome message, the user appears as an anonymous user when moving to another browser page. I confirmed that sessions are ...
박세진's user avatar
0 votes
0 answers
12 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 ...
Arnab Dutta's user avatar
-1 votes
1 answer
80 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 ...
Majuj's user avatar
  • 179
-1 votes
1 answer
373 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 ...
vikas's user avatar
  • 1
0 votes
0 answers
18 views

How to create persistent Cookie in servlet (Java) difference between the non-persistent cookie and HttpSession [duplicate]

How to create persistent Cookie in servlet (Java) or both have the same Syntax only And Difference between the non-persistent cookie and HttpSession. Cookie c = new Cookie("c1",login);//...
Sufiyan Khan's user avatar
0 votes
0 answers
38 views

transfer of an HttpSession with some non-Serializable attributes between cluster nodes

Let's assume that an HttpSession, that contains a mix of non-Serializable attributes and Serializable ones (that will actually serialize properly), needs to be transferred between cluster nodes. Does ...
morgwai's user avatar
  • 2,726
0 votes
1 answer
695 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 ...
Max's user avatar
  • 23
2 votes
1 answer
314 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 ...
marc_s's user avatar
  • 748k
-1 votes
1 answer
60 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) [ { "...
Alms's user avatar
  • 119
0 votes
1 answer
45 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 '...
Alms's user avatar
  • 119
1 vote
0 answers
50 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): ...
Jbb's user avatar
  • 583
0 votes
0 answers
710 views

Check Keycloak SSO session presence from another domain

My application is on the example.com domain. My Keycloak SSO is on the sso.example.com. I use Keycloak 18. Is there a way to check the SSO session presence from the same browser, from example.com ...
alexanoid's user avatar
  • 25.3k

15 30 50 per page
1
2 3 4 5
44