3 if(!isset($_SESSION['state'])){
\r
4 $_SESSION['state'] = array(
\r
5 'sessionId'=>session_id()
\r
8 foreach($_COOKIE as $name=>$value){
\r
9 // look for state cookies
\r
10 if(strpos($name, 'ys-') === 0){
\r
12 $_SESSION['state'][substr($name, 3)] = $value;
\r
14 setCookie($name, '', time()-10000, '/');
\r