src/snac/data/User.php
/**
     * Generate a temporary session
     *
     * Generates a temporary session, using the timestamp as an access token and the expiration to be
     * the number of hours specified by the parameter from now.
     *
     * @param int $hours optional number of valid hours for the token (default 2)
     */
Generate a temporary session
Generates a temporary session, using the timestamp as an access token and the expiration to be
the number of hours specified by the parameter from now.

@param int $hours optional number of valid hours for the token (default 2)
Generate a temporary session Generates a temporary session using the timestamp as an access token and the expiration to be the number of hours specified by the parameter from now . @param int $hours optional number of valid hours for the token ( default 2 )
public function generateTemporarySession($hours = 2) {
        $token = array(
                "access_token" => time(),                
                "expires" => time() + ($hours * 60 * 60), 
                "authority" => "snac"                   
        );
        $this->setToken($token);
    }
public function generateTemporarySession ( $ hours = 2 ) { $ token = array ( " access_token " => time ( ) , " expires " => time ( ) + ( $ hours * 60 * 60 ) , " authority " => " snac " ) ; $ this -> setToken ( $ token ) ; }
Generate a temporary session
 Generates a temporary session, using the timestamp as an access token and the expiration to be
 the number of hours specified by the parameter from now.
Generate a temporary session Generates a temporary session using the timestamp as an access token and the expiration to be the number of hours specified by the parameter from now .
// use time() to be unique-ish // Generates expiration $hours away // We faked this session