Stud.IP
2.0 Revision 48548
|
Public Member Functions | |
register ($things) | |
is_registered ($name) | |
unregister ($things) | |
get_id ($id="") | |
put_id () | |
delete () | |
url ($url) | |
purl ($url) | |
self_url () | |
pself_url () | |
hidden_session () | |
add_query ($qarray) | |
padd_query ($qarray) | |
serialize ($prefix, $str) | |
get_lock () | |
release_lock () | |
freeze () | |
thaw () | |
reimport_get_vars () | |
reimport_post_vars () | |
reimport_cookie_vars () | |
reimport_any_vars ($arrayname) | |
set_container () | |
set_tokenname () | |
release_token () | |
put_headers () | |
gc () | |
start ($sid="") | |
Session () | |
start () | |
name ($name= '') | |
register ($var_names) | |
is_registered ($var_name) | |
unregister ($var_names) | |
put_id () | |
delete () | |
set_tokenname () | |
put_headers () | |
open () | |
close () | |
del () | |
freeze ($id=NULL, $sess_data=NULL) | |
thaw () | |
gc () | |
set_container () | |
url ($url) | |
self_url () | |
pself_url () | |
regenerate_session_id ($keep_session_vars=array()) |
Data Fields | |
$classname = "Session" | |
$magic = "" | |
$mode = "cookie" | |
$fallback_mode | |
$lifetime = 0 | |
$cookie_domain = "" | |
$cookie_path = "/" | |
$gc_time = 1440 | |
$gc_probability = 1 | |
$auto_init = "" | |
$secure_auto_init = 1 | |
$allowcache = "no" | |
$allowcache_expire = 1440 | |
$that_class = "" | |
$name = "" | |
$id = "" | |
$that | |
$pt = array() | |
$in = false | |
$cookiename | |
$trans_id_enabled = true | |
$module = 'user' | |
$save_path |
add_query | ( | $qarray | ) |
close | ( | ) |
Close callback
del | ( | ) |
Delete callback
delete | ( | ) |
Reimplemented in User.
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.
Reimplemented in User.
freeze | ( | ) |
freeze | ( | $id = NULL , |
|
$sess_data = NULL |
|||
) |
gc | ( | ) |
Reimplemented in Seminar_Session.
gc | ( | ) |
gc callback.
Destroy all session data older than $this->gc_time
Reimplemented in Seminar_Session.
get_lock | ( | ) |
hidden_session | ( | ) |
is_registered | ( | $name | ) |
Reimplemented in User.
is_registered | ( | $var_name | ) |
see if a variable is registered in the current session
$var_name | a string with the variable name |
Reimplemented in User.
name | ( | $name = '' | ) |
Sets or returns the name of the current session
string | If given, sets the session name |
open | ( | ) |
Open callback
abstract
padd_query | ( | $qarray | ) |
pself_url | ( | ) |
pself_url | ( | ) |
purl | ( | $url | ) |
put_headers | ( | ) |
?
put_headers | ( | ) |
put_id | ( | ) |
put_id | ( | ) |
Delete the cookie holding the session id.
RFC: is this really needed? can we prune this function? the only reason to keep it is if one wants to also unset the cookie when session_destroy()ing,which PHP doesn't seem to do (looking @ the session.c:940) uw: yes we should keep it to remain the same interface, but deprec.
public $_COOKIE
Reimplemented in User.
regenerate_session_id | ( | $keep_session_vars = array() | ) |
register | ( | $things | ) |
Reimplemented in User.
register | ( | $var_names | ) |
Register the variable(s) that should become persistent.
mixed | String with the name of one or more variables seperated by comma or a list of variables names: "foo"/"foo,bar,baz"/{"foo","bar","baz"} public |
Reimplemented in User.
reimport_any_vars | ( | $arrayname | ) |
reimport_cookie_vars | ( | ) |
reimport_get_vars | ( | ) |
reimport_post_vars | ( | ) |
release_lock | ( | ) |
release_token | ( | ) |
self_url | ( | ) |
self_url | ( | ) |
serialize | ( | $prefix, | |
$str | |||
) |
Session | ( | ) |
Sets the session name before the session starts.
Make sure that all derived classes call the constructor
set_container | ( | ) |
set_container | ( | ) |
?
set_tokenname | ( | ) |
?
set_tokenname | ( | ) |
start | ( | ) |
Start a new session or recovers from an existing session
start | ( | $sid = "" | ) |
thaw | ( | ) |
Reimplemented in User.
thaw | ( | ) |
unregister | ( | $things | ) |
Reimplemented in User.
unregister | ( | $var_names | ) |
Recall the session registration for named variable(s)
mixed | String with the name of one or more variables seperated by comma or a list of variables names: "foo"/"foo,bar,baz"/{"foo","bar","baz"} public |
Reimplemented in User.
url | ( | $url | ) |
url | ( | $url | ) |
$allowcache = "no" |
$allowcache_expire = 1440 |
$auto_init = "" |
$classname = "Session" |
Session name
$cookie_domain = "" |
$cookie_path = "/" |
$cookiename |
$fallback_mode |
$gc_probability = 1 |
$gc_time = 1440 |
$id = "" |
$in = false |
$lifetime = 0 |
$magic = "" |
$mode = "cookie" |
$module = 'user' |
$name = "" |
$pt = array() |
$save_path |
$secure_auto_init = 1 |
$that |
$that_class = "" |
Name of data storage container
var string
$trans_id_enabled = true |