PHPLib Sessions using PHP 4 build-in sessions and PHPLib storage container
- Copyright
- (c) 1998,1999 NetUSE GmbH Boris Erdmann, Kristian Koehntopp, 2000 Maxim Derkachev kot@b.nosp@m.ooks.nosp@m..ru, 2000 Teodor Cimpoesu teo@d.nosp@m.igir.nosp@m.o.net
- Author
- André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e Maxim Derkachev kot@b.nosp@m.ooks.nosp@m..ru, Teodor Cimpoesu teo@d.nosp@m.igir.nosp@m.o.net,Ulf Wendel uw@ne.nosp@m.tuse.nosp@m..de
static check_ticket |
( |
|
$studipticket | ) |
|
|
static |
checks the given string token against the one stored in the session
- Parameters
-
- Returns
- bool
Delete the current session destroying all registered data.
Note that it does more but the PHP 4 session_destroy it also throws away a cookie is there's one.
- Returns
- boolean session_destroy return value public
freeze |
( |
|
$id = null , |
|
|
|
$sess_data = null |
|
) |
| |
static get_current_session_state |
( |
| ) |
|
|
static |
Returns the state of the current session. Does not start a session. possible return values: 'authenticated' - session is valid and user is authenticated 'nobody' - session is valid, but user is not authenticated false - no valid session
- Returns
- string|false
static get_session_vars |
( |
|
$sid | ) |
|
|
static |
returns a random string token for XSRF prevention the string is stored in the session
- Returns
- string
static is_current_session_authenticated |
( |
| ) |
|
|
static |
static is_current_session_authenticated |
( |
| ) |
|
|
static |
Returns true, if the current session is valid and belongs to an authenticated user. Does not start a session.
- Returns
- bool
Sets or returns the name of the current session
- Parameters
-
string | If given, sets the session name |
- Returns
- string session_name() return value public
regenerate_session_id |
( |
|
$keep_session_vars = [] | ) |
|
Start a new session or recovers from an existing session
- Returns
- boolean session_start() return value public
The documentation for this class was generated from the following files: