TYPO3  7.6
Public Member Functions | List of all members
SessionStorage Class Reference
Inheritance diagram for SessionStorage:
AbstractStorage

Public Member Functions

 __construct ()
 
 get ()
 
 put ($key)
 
- Public Member Functions inherited from AbstractStorage
 get ()
 
 put ($key)
 

Detailed Description

This class contains a session-based storage for private keys. This storage is not secure enough because its implementation stores keys completely in the PHP sessions. PHP sessions usually store data in the file system and it is easy to extract. This storage is useful only as an example. It is better to use "split" storage for keys.

Definition at line 24 of file SessionStorage.php.

Constructor & Destructor Documentation

__construct ( )

Creates an instance of this class. It checks and initializes PHP sessions if necessary.

Returns
void

Definition at line 32 of file SessionStorage.php.

Member Function Documentation

get ( )

Obtains key from the session

Returns
string The key or NULL
See Also
::get()

Definition at line 45 of file SessionStorage.php.

put (   $key)

Puts key to the session

Parameters
string$keyThe key
See Also
::put()

Definition at line 56 of file SessionStorage.php.