413020 Second call to HttpSession.invalidate() should throw exception

413019 HttpSession.getCreateTime() should throw exception after session is invalidated
This commit is contained in:
Jan Bartel 2013-07-18 14:59:10 +10:00
parent 8645849272
commit 48bedc3fd4
1 changed files with 2 additions and 0 deletions

View File

@ -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();