Module jls.net.http.HttpSession

HTTP session class.

A session is associated to the HTTP exchange. It can be used for tasks such as authentication, access control.

Class HttpSession

HttpSession:new () Creates an HTTP session.
httpSession:getId () Returns this session id.
httpSession:getCreationTime () Returns the creation time of this session.
httpSession:getLastAccessTime () Returns the time where this session was last accessed.
httpSession:invalidate () Invalidates this session.


Class HttpSession

A HttpSession class. The HttpSession class inherits from Attributes.
HttpSession:new ()
Creates an HTTP session.
httpSession:getId ()
Returns this session id.

Returns:

    string the session id.
httpSession:getCreationTime ()
Returns the creation time of this session. The time is given as the number of milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

Returns:

    number the creation time.
httpSession:getLastAccessTime ()
Returns the time where this session was last accessed. The time is given as the number of milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

Returns:

    number the last access time.
httpSession:invalidate ()
Invalidates this session.
generated by LDoc 1.4.6