Handles the backend session

 Methods

Starts the session

__construct(string $prefix) 

Parameters

$prefix

string

The prefix for the session variables

Deletes the session by calling session_destroy()

delete() 

Stores the session using PHP's own session implementation

freeze() 

Dummy function.

hidden_session() 

This is no longer needed and will always return "".

deprecated Since this function is not needed anymore it shouldn't be used

Checks if a variable is registered

isRegistered(string $name) 

Parameters

$name

string

The name of the variable (e.g. "idclient")

Checks if a variable is registered

is_registered(string $name) 
deprecated Please use isRegistered instead

Parameters

$name

string

The name of the variable (e.g. "idclient")

Registers a global variable which will become persistent

register(string $things) 

Parameters

$things

string

The name of the variable (e.g. "idclient")

Attaches "&contenido=1" at the end of the current URL.

selfURL() 

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.

self_url() 

This is no longer needed to make sessions work but some CONTENIDO functions/classes rely on it

deprecated Please use selfURL() instead

Returns PHP code which can be used to rebuild the variable by evaluating it.

serialize(mixed $var) : string

This will work recursevly on arrays

Parameters

$var

mixed

A variable which should get serialized.

Returns

stringthe PHP code which can be evaluated.

Starts the session and rebuilds the variables

start() 

Rebuilds every registered variable from the session.

thaw() 

Unregisters a variable

unregister(string $name) 

Parameters

$name

string

The name of the variable (e.g. "idclient")

Attaches "&contenido=1" at the end of the URL.

url(string $url) 

This is no longer needed to make sessions work but some CONTENIDO functions/classes rely on it

Parameters

$url

string

A URL

This function will go recursevly through arrays and objects to serialize them.

_rSerialize(mixed $var, string $str) 

Parameters

$var

mixed

The variable

$str

string

The PHP code will be attached to this string

 Properties

 

$id : string

This variable isn't needed to make sessions work any longer but some CONTENIDO functions/classes rely on it

 

$name : \unknown_type

This variable isn't needed to make sessions work any longer but some CONTENIDO functions/classes rely on it

 

$_prefix : string
 

$_pt : array