Upgrade to ExtJS 3.2.2 - Released 06/02/2010
[extjs.git] / examples / state / save-state.php
index ace9733..8acec64 100644 (file)
@@ -1,16 +1,16 @@
-<?php\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
+<?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, '/');
+    }
+}