summaryrefslogtreecommitdiff
path: root/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-15 15:59:16 +0300
committerAndrew Dolgov <[email protected]>2018-10-15 15:59:16 +0300
commit2a029c40505796c19a7fd4f86e140da2e5c548a4 (patch)
treeb0e987e3de7cd561917a4d42be7fe31e6a8abc26 /sessions.php
parentb5b914878733d9c1a7f95f833dcda15cad9770d9 (diff)
add some session handling-related improvements
Diffstat (limited to 'sessions.php')
-rw-r--r--sessions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/sessions.php b/sessions.php
index 3735add..bc88180 100644
--- a/sessions.php
+++ b/sessions.php
@@ -19,5 +19,7 @@
register_shutdown_function('session_write_close');
- session_start();
+ if (isset($_COOKIE[session_name()])) {
+ session_start();
+ }
?>