The set function is established to set data to session.
session.set("USER_ID", "Wang");
Calling | Returning |
---|---|
session . set ( key , value ) | void |
Parameters | Type | Description |
---|---|---|
key | String | To idetify the session info. |
value | {any} | The info to set into the session. |