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
◆ __construct()
◆ check_ticket()
static check_ticket |
( |
|
$studipticket | ) |
|
|
static |
checks the given string token against the one stored in the session
- Parameters
-
- Returns
- bool
◆ close()
◆ del()
◆ delete()
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()
freeze |
( |
|
$id = null , |
|
|
|
$sess_data = null |
|
) |
| |
◆ gc()
◆ get_current_session_state()
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
◆ get_session_vars()
static get_session_vars |
( |
|
$sid | ) |
|
|
static |
◆ get_ticket()
returns a random string token for XSRF prevention the string is stored in the session
- Returns
- string
◆ is_current_session_authenticated() [1/2]
static is_current_session_authenticated |
( |
| ) |
|
|
static |
◆ is_current_session_authenticated() [2/2]
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
◆ name()
Sets or returns the name of the current session
- Parameters
-
string | If given, sets the session name |
- Returns
- string session_name() return value public
◆ open()
◆ regenerate_session_id()
regenerate_session_id |
( |
|
$keep_session_vars = [] | ) |
|
◆ set_container()
◆ start()
Start a new session or recovers from an existing session
- Returns
- boolean session_start() return value public
◆ thaw()
The documentation for this class was generated from the following files: