Re: [jetty-users] Session invalidation

2021-03-11 Thread John English
On 26/02/2021 15:30, Peter Ondruška wrote: https://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getSession() getSession() Returns the current session associated with this request, or if the request does not have a session, creates one. I think you wanted to

Re: [jetty-users] Session invalidation

2021-02-27 Thread Jan Bartel
Difficult to tell you what is happening with so little information ;) What version of jetty? What configuration of the session management: SessionCache, SessionStore, SessionIdManager? Does your webapp involve forwarding between contexts? Does your webapp have any filters or 3rd party libraries

Re: [jetty-users] Session invalidation

2021-02-26 Thread Peter Ondruška
- From: jetty-users On Behalf Of John English Sent: Friday, February 26, 2021 1:14 PM To: jetty-users@eclipse.org Subject: [jetty-users] Session invalidation I have a webapp requiring a user to log in before doing anything else. State information is stored in an object in a session attribute

[jetty-users] Session invalidation

2021-02-26 Thread John English
I have a webapp requiring a user to log in before doing anything else. State information is stored in an object in a session attribute called "state". When I log out I do the following: HttpSession session = request.getSession(); if (session != null) {