public function restoreSession() {
	    $sessId = $this->getRequestParameter('session');
	    $url = $this->getRequestParameter('redirect');
	    if (session_id() != $sessId) {  
            common_Logger::i('Changing session to '.$sessId);
            session_unset();
            session_destroy();
            
            session_id($sessId);
            session_start();
            if (session_id() != $sessId) {
               $this->returnError(__('Unable to restore Session'));
            }
            session_regenerate_id(true);
            common_Logger::d('regenerated session to id \''.session_id().'\'');
	    } else {
	        common_Logger::w('Restore session called with correct session id \''.session_id().'\'');
	    }
	    $this->forwardUrl($url);
	}
public function restoreSession() {
	    $sessId = $this->getRequestParameter('session');
	    $url = $this->getRequestParameter('redirect');
	    if (session_id() != $sessId) {  
            common_Logger::i('Changing session to '.$sessId);
            session_unset();
            session_destroy();
            
            session_id($sessId);
            session_start();
            if (session_id() != $sessId) {
               $this->returnError(__('Unable to restore Session'));
            }
            session_regenerate_id(true);
            common_Logger::d('regenerated session to id \''.session_id().'\'');
	    } else {
	        common_Logger::w('Restore session called with correct session id \''.session_id().'\'');
	    }
	    $this->forwardUrl($url);
	}
public function restoreSession ( ) { $ sessId = $ this -> getRequestParameter ( 'session' ) ; $ url = $ this -> getRequestParameter ( 'redirect' ) ; if ( session_id ( ) != $ sessId ) { common_Logger :: i ( 'Changing session to ' . $ sessId ) ; session_unset ( ) ; session_destroy ( ) ; session_id ( $ sessId ) ; session_start ( ) ; if ( session_id ( ) != $ sessId ) { $ this -> returnError ( __ ( 'Unable to restore Session' ) ) ; } session_regenerate_id ( true ) ; common_Logger :: d ( 'regenerated session to id \'' . session_id ( ) . '\'' ) ; } else { common_Logger :: w ( 'Restore session called with correct session id \'' . session_id ( ) . '\'' ) ; } $ this -> forwardUrl ( $ url ) ; }
Closses the current session, restores the session provided
in the parameter session, regenerates a new sessionid and
redirects the user to the original address
@throws \common_Exception
Closses the current session restores the session provided in the parameter session regenerates a new sessionid and redirects the user to the original address