- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_set_sess(const name, value: string): boolean;
function web_set_sessf(const name: string; value: double): boolean;
function web_set_sessi(const name: string; value: longint): boolean;
Arguments:
-
name |
Variable name |
value |
Variable value |
Description:
-
Sets session variable. If session is not yet registered, new session will be created automatically. If session is already opened, this call will modify session data. Don't forget about session lifetime. If output_buffering is disabled this call is valid only before any output (web_print[xxx] calls).
Returns:
-
TRUE on success, FALSE on error.
Usage:
-
web_set_sess('name', 'John');
web_set_sessf('cash', 123.456);
web_set_sessi('count', 256);
See also:
-
web_get_sess, web_unset_sess, web_session_destroy.
|