Summary
- File
- Package hierarchy User\session
- Class hierarchy \SessionData
This class manages all sessions for the users.
This class manages all sessions for the users.
get_user_id()
None found |
get_session_id()
None found |
get_token()
None found |
get_expiry_date()
None found |
get_timestamp()
None found |
get_ip()
None found |
get_location_script()
None found |
get_location_title()
None found |
get_location_id()
None found |
get_all_cached_data()
None found |
has_cached_data( $key)
$key |
None found |
get_cached_data( $key, $default = null)
$key | ||
$default |
None found |
add_cached_data( $key, $value)
$key | ||
$value |
None found |
remove_cached_data( $key)
$key |
None found |
get_all_data()
None found |
has_data( $key)
$key |
None found |
get_data( $key)
$key |
None found |
add_data( $key, $value)
$key | ||
$value |
None found |
remove_data( $key)
$key |
None found |
recheck_cached_data()
None found |
save()
None found |
delete()
None found |
no_session_location()
None found |
location_id_already_exists( $location_id)
$location_id |
None found |
get_user_on_location_id( $location_id)
$location_id |
None found |
admin_session()
None found |
gc()
None found |
create_visitor() : \SessionData
None found |
create_from_user_id(integer $user_id) : \SessionData
integer | $user_id |
None found |
add_in_visit_counter()
None found |
update_location( $title_page, $location_id = '')
$title_page | ||
$location_id |
None found |
recheck_cached_data_from_user_id( $user_id)
$user_id |
None found |
from_cookie(string $cookie_content) : \SessionData
string | $cookie_content |
None found |
csrf_post_protect()
Check the session against CSRF attacks by POST. Checks that POSTs are done with the token of the current session.
If the token of the request doesn't match the token of the current session, this method will consider that it's a CSRF attack.
None found |
csrf_get_protect()
Check the session against CSRF attacks by GET. Checks that GETs are done with the token of the current session.
If the token of the request doesn't match the token of the current session, this method will consider that it's a CSRF attack.
None found |
__construct( $user_id, $session_id)
$user_id | ||
$session_id |
None found |
update_user_info( $user_id)
$user_id |
None found |
create()
None found |
delete_in_db()
None found |
delete_cookie()
None found |
create_in_db()
None found |
create_cookie()
None found |
get_serialized_content()
None found |
session_exists(integer $user_id) : \SessionData
integer | $user_id |
None found |
use_existing_session(integer $user_id) : \SessionData
integer | $user_id |
None found |
get_existing_session( $user_id)
$user_id |
None found |
update_existing_session( $user_id)
$user_id |
None found |
init_from_row( $user_id, $session_id, array $row)
$user_id | ||
$session_id | ||
array | $row |
None found |
fill_user_cached_data(\SessionData $data)
\SessionData | $data |
None found |
check_csrf_attack()
None found |
$user_id :
None found |
$session_id :
None found |
$token :
None found |
$timestamp :
None found |
$ip :
None found |
$location_script :
None found |
$location_title :
None found |
$location_id :
None found |
$cached_data :
None found |
$data :
None found |
$cached_data_modified :
None found |
$data_modified :
None found |
$KEY_USER_ID :
None found |
$KEY_SESSION_ID :
None found |