$session

Global object for managing the servlet session

Summary
$sessionGlobal object for managing the servlet session
Functions
cleardeletes a session.
getgets a value from the session.
setSets a value in the session.
Properties
idThe session id (readonly)
createdSession created time (readonly).
timeoutMinutesNumber of minutes of inactivity before session is deleted.

Functions

clear

clear:function()

deletes a session.

get

get:function(key)

gets a value from the session.

Parameters

keyString variable name to retrieve

Returns

value of key in the current session

See

$session.set

set

set:function(key,
value)

Sets a value in the session.

Parameters

keyString variable name to set
valuevalue to set

See

$session.get

Properties

id

The session id (readonly)

created

Session created time (readonly).

timeoutMinutes

Number of minutes of inactivity before session is deleted.

Detail

Set this to a different value to change the session timeout

clear:function()
deletes a session.
get:function(key)
gets a value from the session.
set:function(key,
value)
Sets a value in the session.