Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cFrontendSession
  • cSession
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cSession

Backend session class.

Direct known subclasses

cFrontendSession
Package: Core\Session
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Frederic Schneider
Located at classes/class.session.php
Methods summary
public
# __construct( string $prefix = 'backend' )

Starts the session

Starts the session

Parameters

$prefix
string
$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
string
$things The name of the variable (e.g. "idclient")
public
# unregister( string $name )

Unregisters a variable

Unregisters a variable

Parameters

$name
string
$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
string
$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

$url
string
$url A URL

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
mixed
$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
mixed
$var The variable
$str
string
$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

CMS CONTENIDO 4.9.5 API documentation generated by ApiGen 2.8.0