Location: PHPKode > projects > Skat Statistics > skatstat-1.7.1/skatstat/inc/session.php
<?
require_once 'encryption.php';

function ss_session_read( $name = "SKATSTAT" )
{
  global $SKAT_SESSION;
  $SKAT_SESSION = 
    unserialize( decrypt( stripslashes( $_COOKIE[ $name ] )));
}

function ss_session_write( $name = "SKATSTAT" )
{
  global $SKAT_SESSION;
  setcookie( $name, encrypt( serialize( $SKAT_SESSION ) ), time() + COOKIETTL );
}

function ss_session_destroy( $name = "SKATSTAT" )
{
  global $SKAT_SESSION;
  setcookie( $name, "", 0);
}
Return current item: Skat Statistics