com-tecnick-tcexam-shared

# Procedural File: tce_functions_session.php Source Location: /shared/code/tce_functions_session.php ## Page Details: User-level session storage functions. This script uses the session_set_save_handler() function to set the user-level session storage functions which are used for storing and retrieving data associated with a session. The session data is stored on a local database. NOTE: This script automatically starts the user's session. #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-09-26
usedby: | tce_logout.php
license: | GNU Affero General Public License
### F_session_close [line 80]
`bool F_session_close( )`
Close session. Call garbage collector function to remove expired sessions. #### Tags:
return: | always TRUE
[ Top ] ### F_session_destroy [line 157]
`resource F_session_destroy( string $key)`
Deletes the specific session. #### Tags:
return: | database query result.
#### Parameters
string | $key | session ID of session to destroy.
[ Top ] ### F_session_gc [line 171]
`int F_session_gc( [int $maxlife = K_SESSION_LIFE])`
Garbage collector. Deletes expired sessions. NOTE: while time() function returns a 32 bit integer, it works fine until year 2038. #### Tags:
return: | number of deleted sessions.
#### Parameters
int | $maxlife | max session life time in seconds. The default value is defined by K_SESSION_LIFE costant on shared/config/tce_config.php file.
[ Top ] ### F_session_open [line 71]
`bool F_session_open( string $save_path, string $session_name)`
Open session. #### Tags:
return: | always TRUE
#### Parameters
string | $save_path | path were to store session data
string | $session_name | name of session
[ Top ] ### F_session_read [line 90]
`string F_session_read( string $key)`
Get session data. #### Tags:
return: | session data.
#### Parameters
string | $key | session ID.
[ Top ] ### F_session_string_to_array [line 191]
`array F_session_string_to_array( string $sd)`
Convert encoded session string data to array. #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-10-18
license: | GNU Affero General Public License
#### Parameters
string | $sd | input data string
[ Top ] ### F_session_write [line 112]
`resource F_session_write( string $key, string $val)`
Insert or Update session. #### Tags:
return: | database query result.
#### Parameters
string | $key | session ID.
string | $val | session data.
[ Top ] ### getClientFingerprint [line 212]
`string getClientFingerprint( )`
Generate a client fingerprint (unique ID for the client browser) #### Tags:
return: | client ID
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2010-10-04
license: | GNU Affero General Public License
[ Top ] ### getNewSessionID [line 244]
`string getNewSessionID( )`
Generate and return a new session ID. #### Tags:
return: | PHPSESSID
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2010-10-04
license: | GNU Affero General Public License
[ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:05 +0100 by phpDocumentor 1.4.3