/ comp / gb.web / session
Session (gb.web)
This class is used for managing sessions.

A session is a collection-like container identified by a 32 hexadecimal digits random number. This identifier is returned by the Session.Id property.

The session identifier is stored in a cookie named 'SESSION' in the client browser.

Symbols
This class is static.
This class acts like a read / write array.

Static properties |  | Static methods |
Id Timeout |  | Abandon |

### Storing values in session

The session can store values associated with string keys. You can store as many values as you want, but there are restrictions: only native datatypes, arrays, and collections can be used.

The session contents are stored in the following file:

    "/tmp/gambas" &/ System.User.Id &/ "session" &/ Session.Id

The session is automatically restored at program launch.

### Session creation

A newly session is automatically created as soon as you store a session variable, and no session currently exists (i.e. Session.Id is NULL).

### Session destruction

You can abandon a session by using the Abandon method.