src/Scara/Session/Cookie.php
public function set($key, $value, $expire = 3600, $path = '/')
    {
        if ($expire == false) {
            setcookie($key, serialize($value), false, $path);
        } else {
            setcookie($key, serialize($value), time() + $expire, $path);
        }
    }
public function set($key, $value, $expire = 3600, $path = '/')
    {
        if ($expire == false) {
            setcookie($key, serialize($value), false, $path);
        } else {
            setcookie($key, serialize($value), time() + $expire, $path);
        }
    }
public function set ( $ key , $ value , $ expire = 3600 , $ path = '/' ) { if ( $ expire == false ) { setcookie ( $ key , serialize ( $ value ) , false , $ path ) ; } else { setcookie ( $ key , serialize ( $ value ) , time ( ) + $ expire , $ path ) ; } }
Adds to the session.

@param string $key    - Key given to session
@param string $value  - Value given to session's $key
@param mixed  $expire - Sets expiration of cookie
@param stirng $path   - The path the cookie should be set to

@return mixed
Adds to the session .