Method | Description | |
---|---|---|
__construct ( ) : void | Class Constructor | |
get ( string $key ) : string | Get Session | |
get_id ( ) : string | Get Session ID | |
get_session_expiration ( ) : string | Get Session Expiration | |
init ( ) : array | Session Init | |
maybe_start_session ( ) : void | Maybe Start Session | |
set ( string $key, string $value ) : mixed | Set Session | |
set_expiration_time ( ) : integer | Set Cookie Expiration | |
set_expiration_variant_time ( ) : integer | Set Cookie Variant Time | |
set_session_cookies ( ) | Set Session Cookies | |
should_start_session ( ) : boolean | Should Start Session | |
use_php_sessions ( ) : boolean | Starts a new session if one has not started yet. |
public __construct ( ) : void | ||
return | void |
public get_session_expiration ( ) : string | ||
return | string | Formatted expiration date string. |
public maybe_start_session ( ) : void | ||
return | void |
public set_expiration_time ( ) : integer | ||
return | integer |
public set_expiration_variant_time ( ) : integer | ||
return | integer |
public set_session_cookies ( ) |
public should_start_session ( ) : boolean | ||
return | boolean |
public use_php_sessions ( ) : boolean | ||
return | boolean | $ret True if we are using PHP sessions, false otherwise. |