X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..b37ceabb82336ee82757cd32efe353cfab8ec267:/examples/state/save-state.php diff --git a/examples/state/save-state.php b/examples/state/save-state.php index 769ad303..8acec648 100644 --- a/examples/state/save-state.php +++ b/examples/state/save-state.php @@ -1,17 +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, '/'); - } -} -?> \ No newline at end of file +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, '/'); + } +}