ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Slim_Session_Handler_Cookies Class Reference
+ Inheritance diagram for Slim_Session_Handler_Cookies:
+ Collaboration diagram for Slim_Session_Handler_Cookies:

Public Member Functions

 open ($savePath, $sessionName)
 Open session.
 close ()
 Close session.
 read ($id)
 Read session data with ID.
 write ($id, $sessionData)
 Write session data with ID.
 destroy ($id)
 Destroy session with ID.
 gc ($maxLifetime)
 Session garbage collection.
- Public Member Functions inherited from Slim_Session_Handler
 register (Slim $app)
 Register session handler.

Additional Inherited Members

- Protected Attributes inherited from Slim_Session_Handler
 $app

Detailed Description

Definition at line 45 of file Cookies.php.

Member Function Documentation

Slim_Session_Handler_Cookies::close ( )

Close session.

Returns
mixed

Reimplemented from Slim_Session_Handler.

Definition at line 51 of file Cookies.php.

{
return true; //Not used
}
Slim_Session_Handler_Cookies::destroy (   $id)

Destroy session with ID.

Parameters
string$idThe session identifier
Returns
mixed

Reimplemented from Slim_Session_Handler.

Definition at line 63 of file Cookies.php.

{
$this->app->deleteCookie($id);
}
Slim_Session_Handler_Cookies::gc (   $maxLifetime)

Session garbage collection.

Executed when the PHP session garbage collector is invoked; should remove all session data older than the $maxLifetime.

Parameters
int$maxLifetime
Returns
mixed

Reimplemented from Slim_Session_Handler.

Definition at line 67 of file Cookies.php.

{
return true; //Not used
}
Slim_Session_Handler_Cookies::open (   $savePath,
  $sessionName 
)

Open session.

Parameters
string$savePath
string$sessionName
Returns
mixed

Reimplemented from Slim_Session_Handler.

Definition at line 47 of file Cookies.php.

{
return true;
}
Slim_Session_Handler_Cookies::read (   $id)

Read session data with ID.

Parameters
string$idThe session identifier
Returns
string

Reimplemented from Slim_Session_Handler.

Definition at line 55 of file Cookies.php.

{
return $this->app->getEncryptedCookie($id);
}
Slim_Session_Handler_Cookies::write (   $id,
  $sessionData 
)

Write session data with ID.

The "write" handler is not executed until after the output stream is closed. Thus, output from debugging statements in the "write" handler will never be seen in the browser. If debugging output is necessary, it is suggested that the debug output be written to a file instead.

Parameters
string$idThe session identifier
mixed$sessionDataThe session data
Returns
mixed

Reimplemented from Slim_Session_Handler.

Definition at line 59 of file Cookies.php.

{
$this->app->setEncryptedCookie($id, $sessionData, 0);
}

The documentation for this class was generated from the following file: