Class cSession
Methods summary
public
|
#
__construct( string $prefix = 'backend' )
Starts the session
Parameters
- $prefix
- The prefix for the session variables
|
public
|
#
register( string $things )
Registers a global variable which will become persistent
Registers a global variable which will become persistent
Parameters
- $things
- The name of the variable (e.g. "idclient")
|
public
|
#
unregister( string $name )
Unregisters a variable
Parameters
- $name
- The name of the variable (e.g. "idclient")
|
public
boolean
|
#
isRegistered( string $name )
Checks if a variable is registered
Checks if a variable is registered
Parameters
- $name
- The name of the variable (e.g. "idclient")
Returns
boolean
|
public
mixed
|
#
url( string $url )
Attaches "&contenido=sessionid" at the end of the URL.
This is no longer needed to make sessions work but some CONTENIDO
functions/classes rely on it
Attaches "&contenido=sessionid" at the end of the URL.
This is no longer needed to make sessions work but some CONTENIDO
functions/classes rely on it
Parameters
Returns
mixed
|
public
mixed
|
#
selfURL( )
Attaches "&contenido=1" at the end of the current URL.
This is no longer needed to make sessions work but some CONTENIDO
functions/classes rely on it
Attaches "&contenido=1" at the end of the current URL.
This is no longer needed to make sessions work but some CONTENIDO
functions/classes rely on it
Returns
mixed
|
public
string
|
#
serialize( mixed $var )
Returns PHP code which can be used to rebuild the variable by evaluating
it.
This will work recursevly on arrays
Returns PHP code which can be used to rebuild the variable by evaluating
it.
This will work recursevly on arrays
Parameters
- $var
- A variable which should get serialized.
Returns
string the PHP code which can be evaluated.
|
protected
|
#
_rSerialize( mixed $var, string & $str )
This function will go recursevly through arrays and objects to serialize
them.
This function will go recursevly through arrays and objects to serialize
them.
Parameters
- $var
- The variable
- $str
- The PHP code will be attached to this string
|
public
|
#
freeze( )
Stores the session using PHP's own session implementation
Stores the session using PHP's own session implementation
|
public
|
#
thaw( )
Rebuilds every registered variable from the session.
Rebuilds every registered variable from the session.
|
public
|
#
delete( )
Deletes the session by calling session_destroy()
Deletes the session by calling session_destroy()
|
public
|
#
start( )
Starts the session and rebuilds the variables
Starts the session and rebuilds the variables
|
Properties summary
protected
array
|
$_pt
Saves the registered variables
Saves the registered variables
|
|
protected
string
|
$_prefix
The prefix for the session variables
The prefix for the session variables
|
|
public
string
|
$id
Placeholder.
This variable isn't needed to make sessions work any longer
but some CONTENIDO functions/classes rely on it
Placeholder.
This variable isn't needed to make sessions work any longer
but some CONTENIDO functions/classes rely on it
|
|
public
string
|
$name
Placeholder.
This variable isn't needed to make sessions work any longer
but some CONTENIDO functions/classes rely on it
Placeholder.
This variable isn't needed to make sessions work any longer
but some CONTENIDO functions/classes rely on it
|
|