X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..ddde20c4d4ac6a8d53de079761155de813845b3c:/examples/state/save-state.php diff --git a/examples/state/save-state.php b/examples/state/save-state.php index ace9733d..8acec648 100644 --- a/examples/state/save-state.php +++ b/examples/state/save-state.php @@ -1,16 +1,16 @@ -session_id() - ); -} -foreach($_COOKIE as $name=>$value){ - // look for state cookies - if(strpos($name, 'ys-') === 0){ - // store in session - $_SESSION['state'][substr($name, 3)] = $value; - // remove cookie - setCookie($name, '', time()-10000, '/'); - } -} +session_id() + ); +} +foreach($_COOKIE as $name=>$value){ + // look for state cookies + if(strpos($name, 'ys-') === 0){ + // store in session + $_SESSION['state'][substr($name, 3)] = $value; + // remove cookie + setCookie($name, '', time()-10000, '/'); + } +}