-<?\r
-session_start();\r
-if(!isset($_SESSION['state'])){\r
- $_SESSION['state'] = array(\r
- 'sessionId'=>session_id()\r
- );\r
-}\r
-foreach($_COOKIE as $name=>$value){\r
- // look for state cookies\r
- if(strpos($name, 'ys-') === 0){\r
- // store in session\r
- $_SESSION['state'][substr($name, 3)] = $value;\r
- // remove cookie\r
- setCookie($name, '', time()-10000, '/');\r
- }\r
-}\r
-?>
\ No newline at end of file
+<?php
+session_start();
+if(!isset($_SESSION['state'])){
+ $_SESSION['state'] = array(
+ 'sessionId'=>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, '/');
+ }
+}