mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-22 15:15:48 +00:00
413020 Second call to HttpSession.invalidate() should throw exception
413019 HttpSession.getCreateTime() should throw exception after session is invalidated
This commit is contained in:
parent
8645849272
commit
48bedc3fd4
@ -185,6 +185,7 @@ public abstract class AbstractSession implements AbstractSessionManager.SessionI
|
||||
@Override
|
||||
public long getCreationTime() throws IllegalStateException
|
||||
{
|
||||
checkValid();
|
||||
return _created;
|
||||
}
|
||||
|
||||
@ -365,6 +366,7 @@ public abstract class AbstractSession implements AbstractSessionManager.SessionI
|
||||
@Override
|
||||
public void invalidate() throws IllegalStateException
|
||||
{
|
||||
checkValid();
|
||||
// remove session from context and invalidate other sessions with same ID.
|
||||
_manager.removeSession(this,true);
|
||||
doInvalidate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user