com-tecnick-tcexam-shared
[ class tree: com-tecnick-tcexam-shared ] [ index: com-tecnick-tcexam-shared ] [ all elements ]

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-2008, 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 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 154]

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 168]

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 188]

array F_session_string_to_array( string $sd)

Convert encoded session string data to array.



Tags:

author:  Nicola Asuni
copyright:  Copyright © 2004-2008, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2001-10-18
license:  GNU 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 ]



Documentation generated on Thu, 05 Feb 2009 12:44:39 +0100 by phpDocumentor 1.4.1