Session class for the frontend.

It uses a different prefix. The rest is the same

 Methods

Starts the session and initilializes the class

__construct() 

Deletes the session by calling session_destroy()

delete() 
Inherited
inherited_from \cSession::delete()

Stores the session using PHP's own session implementation

freeze() 
Inherited
inherited_from \cSession::freeze()

Dummy function.

hidden_session() 
Inherited

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

inherited_from \cSession::hidden_session()

Checks if a variable is registered

isRegistered(string $name) 
Inherited
inherited_from \cSession::isRegistered()

Parameters

$name

string

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

Checks if a variable is registered

is_registered(string $name) 
Inherited
inherited_from \cSession::is_registered()

Parameters

$name

string

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

Registers a global variable which will become persistent

register(string $things) 
Inherited
inherited_from \cSession::register()

Parameters

$things

string

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

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

selfURL() 
Inherited

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

inherited_from \cSession::selfURL()

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

self_url() 
Inherited

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

inherited_from \cSession::self_url()

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

serialize(mixed $var) : string
Inherited

This will work recursevly on arrays

inherited_from \cSession::serialize()

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() 
Inherited
inherited_from \cSession::start()

Rebuilds every registered variable from the session.

thaw() 
Inherited
inherited_from \cSession::thaw()

Unregisters a variable

unregister(string $name) 
Inherited
inherited_from \cSession::unregister()

Parameters

$name

string

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

This function overrides cSession::url() so that the contenido=1 isn't attached to the URL for the frontend

url(string $url) 

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

see \cSession::url()

Parameters

$url

string

A URL

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

_rSerialize(mixed $var, string $str) 
Inherited
inherited_from \cSession::_rSerialize()

Parameters

$var

mixed

The variable

$str

string

The PHP code will be attached to this string

 Properties

 

$id : string
Inherited

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

inherited_from \cSession::$$id
 

$name : \unknown_type
Inherited

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

inherited_from \cSession::$$name
 

$_prefix : string
Inherited
inherited_from \cSession::$$_prefix
 

$_pt : array
Inherited
inherited_from \cSession::$$_pt