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