public static function resetActiveSession()
    {
        // Strip '.'
        $appContext = rtrim($GLOBALS['app']->getConfiguration()->getApplicationContext(), '.');
        if (empty($appContext)) {
            $appContext = "/";
        } else {
            $appContext = "/".$appContext."/";
        }

        $category = $_SESSION[self::GLOBAL_PREFIX.'category'];
        session_unset();
        session_destroy();
        $sessionCookieName = $GLOBALS['app']->getConfiguration()->getApplicationContext()."-"."_n5_session"; 
        $sessionCookieName = preg_replace("/\./", "_",$sessionCookieName); 
        session_set_cookie_params(0, $appContext, null, false, true);
        session_name($sessionCookieName);
        session_start();
        session_regenerate_id();
        $_SESSION = array();
        $_SESSION[self::GLOBAL_PREFIX.'category']      = $category; 
        $_SESSION[self::GLOBAL_PREFIX.'last_accessed'] = time();

    }
public static function resetActiveSession()
    {
        // Strip '.'
        $appContext = rtrim($GLOBALS['app']->getConfiguration()->getApplicationContext(), '.');
        if (empty($appContext)) {
            $appContext = "/";
        } else {
            $appContext = "/".$appContext."/";
        }

        $category = $_SESSION[self::GLOBAL_PREFIX.'category'];
        session_unset();
        session_destroy();
        $sessionCookieName = $GLOBALS['app']->getConfiguration()->getApplicationContext()."-"."_n5_session"; 
        $sessionCookieName = preg_replace("/\./", "_",$sessionCookieName); 
        session_set_cookie_params(0, $appContext, null, false, true);
        session_name($sessionCookieName);
        session_start();
        session_regenerate_id();
        $_SESSION = array();
        $_SESSION[self::GLOBAL_PREFIX.'category']      = $category; 
        $_SESSION[self::GLOBAL_PREFIX.'last_accessed'] = time();

    }
public static function resetActiveSession ( ) { // Strip '.' $ appContext = rtrim ( $ GLOBALS [ 'app' ] -> getConfiguration ( ) -> getApplicationContext ( ) , '.' ) ; if ( empty ( $ appContext ) ) { $ appContext = "/" ; } else { $ appContext = "/" . $ appContext . "/" ; } $ category = $ _SESSION [ self :: GLOBAL_PREFIX . 'category' ] ; session_unset ( ) ; session_destroy ( ) ; $ sessionCookieName = $ GLOBALS [ 'app' ] -> getConfiguration ( ) -> getApplicationContext ( ) . "-" . "_n5_session" ; $ sessionCookieName = preg_replace ( "/\./" , "_" , $ sessionCookieName ) ; session_set_cookie_params ( 0 , $ appContext , null , false , true ) ; session_name ( $ sessionCookieName ) ; session_start ( ) ; session_regenerate_id ( ) ; $ _SESSION = array ( ) ; $ _SESSION [ self :: GLOBAL_PREFIX . 'category' ] = $ category ; $ _SESSION [ self :: GLOBAL_PREFIX . 'last_accessed' ] = time ( ) ; }
Resets currently active session.

@access public
@return void
Resets currently active session .