public function verifyCookie() {
	    $url = $this->getRequestParameter('redirect');
        $url = rawurldecode($url);
        $session = $this->getRequestParameter('session');
	    if (session_id() == $session) {
	        $this->forwardUrl($url);
	    } else {
	        $this->setData('session', $session);
	        $this->setData('redirect', $url);
	        $this->setView('cookieError.tpl');
	    }
	}
public function verifyCookie() {
	    $url = $this->getRequestParameter('redirect');
        $url = rawurldecode($url);
        $session = $this->getRequestParameter('session');
	    if (session_id() == $session) {
	        $this->forwardUrl($url);
	    } else {
	        $this->setData('session', $session);
	        $this->setData('redirect', $url);
	        $this->setView('cookieError.tpl');
	    }
	}
public function verifyCookie ( ) { $ url = $ this -> getRequestParameter ( 'redirect' ) ; $ url = rawurldecode ( $ url ) ; $ session = $ this -> getRequestParameter ( 'session' ) ; if ( session_id ( ) == $ session ) { $ this -> forwardUrl ( $ url ) ; } else { $ this -> setData ( 'session' , $ session ) ; $ this -> setData ( 'redirect' , $ url ) ; $ this -> setView ( 'cookieError.tpl' ) ; } }
Verifies whenever or not the cookie was set correctly
Redirects the user to his destination if it was
or prompts the user to restore the session if it wasn't
Verifies whenever or not the cookie was set correctly Redirects the user to his destination if it was or prompts the user to restore the session if it wasn t