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…
Reference in New Issue