X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..b37ceabb82336ee82757cd32efe353cfab8ec267:/examples/state/save-state.php?ds=sidebyside 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, '/'); + } +}