Class EPL_Session
Methods summary
public
|
#
__construct( )
Get things started
Defines our WP_Session constants, includes the necessary libraries and
retrieves the WP Session instance
Since
3.4.15
|
public
|
#
init( )
Setup the WP_Session instance
Setup the WP_Session instance
Since
3.4.15
|
public
string
|
#
get_id( )
Retrieve session ID
Returns
string Session ID
Since
1.6
|
public
mixed
|
#
get( string $key )
Retrieve a session variable
Retrieve a session variable
Parameters
Returns
mixed Session variable
Since
3.4.15
|
public
mixed
|
#
set( string $key, integer|string|array $value )
Set a session variable
Parameters
- $key
- Session key
- $value
- Session variable
Returns
mixed Session variable
Since
3.4.15
|
public
integer
|
#
set_expiration_variant_time( integer $exp )
Force the cookie expiration variant time to 23 hours
Force the cookie expiration variant time to 23 hours
Parameters
- $exp
- Default expiration (1 hour)
Returns
integer
Since
3.4.15
|
public
integer
|
#
set_expiration_time( integer $exp )
Force the cookie expiration time to 24 hours
Force the cookie expiration time to 24 hours
Parameters
- $exp
- Default expiration (1 hour)
Returns
integer Cookie expiration time
Since
3.4.15
|
public
boolean
|
#
use_php_sessions( )
Starts a new session if one hasn't started yet.
Starts a new session if one hasn't started yet.
Returns
boolean Checks to see if the server supports PHP sessions
or if the EPL_USE_PHP_SESSIONS constant is defined
boolean $ret True if we are using PHP sessions, false otherwise
Author
Daniel J Griffiths
Since
3.4.15
|
public
boolean
|
#
should_start_session( )
Determines if we should start sessions
Determines if we should start sessions
Returns
boolean
Since
2.5.11
|
public
array
|
#
get_blacklist( )
Retrieve the URI blacklist
Retrieve the URI blacklist
These are the URIs where we never start sessions
Returns
array
Since
2.5.11
|
public
|
#
maybe_start_session( )
Starts a new session if one hasn't started yet.
Starts a new session if one hasn't started yet.
|