Java Reference
In-Depth Information
The getCreationTime() method returns the time in which the session was created. This time
value is a long representing the milliseconds elapsed since January 1, 1970 UTC.
getCreationTime() has no parameters and throws no exceptions.
It returns this value:
long
The getId() Method
public java.lang.String getId()
C
The getId() method returns a string containing a unique identifier for the current
HttpSession . getId() has no parameters and throws no exceptions.
It returns this value:
java.lang.String
The getLastAccessedTime() Method
public long getLastAccessedTime()
The getLastAccessedTime() method returns the last time, in milliseconds, the client sent a
request with HttpSession . getLastAccessedTime() has no parameters and throws no excep-
tions.
It returns this value:
long
The getMaxIntervalTime() Method
public int getMaxIntervalTime()
The getMaxIntervalTime() method returns the maximum interval between requests that the
server will keep the session valid. getMaxIntervalTime() has no parameters and throws no
exceptions.
It returns this value:
int
The invalidate() Method
public void invalidate()
The invalidate() method forces the session to be invalidated and removed from the context.
invalidate() has no parameters, returns no value, and throws no exceptions.
 
Search WWH ::




Custom Search