The set
function stores data in the current session.
session.set("USER_ID", "Wang");
Calling | Returning |
---|---|
session. set ( key, value ) |
void |
Parameters | Type | Description |
---|---|---|
key |
String |
The key used to identify the session information. |
value |
String | Number | Boolean | Date | Object | Array | ... |
The information to store in the session. |