public function set($variable, $value)
    {
        // Check for encryption and encrypt if required
        if (true === $this->hasEncryption()) {
            $variable = $this->encrypt($variable);
            $value    = $this->encrypt($value);
        }

        $_SESSION[$variable] = $value;

        return true;
    }
public function set($variable, $value)
    {
        // Check for encryption and encrypt if required
        if (true === $this->hasEncryption()) {
            $variable = $this->encrypt($variable);
            $value    = $this->encrypt($value);
        }

        $_SESSION[$variable] = $value;

        return true;
    }
public function set ( $ variable , $ value ) { // Check for encryption and encrypt if required if ( true === $ this -> hasEncryption ( ) ) { $ variable = $ this -> encrypt ( $ variable ) ; $ value = $ this -> encrypt ( $ value ) ; } $ _SESSION [ $ variable ] = $ value ; return true ; }
storages a given variable with value in session.

@param string $variable The name of the session-variable to set
@param mixed  $value    The value of the session-variable to set

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE
storages a given variable with value in session .