#25116 [Fbk->Opn]: PHP can't find session, it starts the new session
| From: | leo dot jokinen at laurea dot fi | Date: | Sun, 17 Aug 2003 13:58:12 +0000 |
| Subject: | #25116 [Fbk->Opn]: PHP can't find session, it starts the new session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46055@lists.php.net to get a copy of this message | ||
ID: 25116
User updated by: leo dot jokinen at laurea dot fi
Reported By: leo dot jokinen at laurea dot fi
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Windows XP home
PHP Version: 4.3.2
New Comment:
I've tried to use these files to get access to the session.
page1.php:
<?php
session_start();
$_SESSION["test"] = "Hello World";
echo 'The content is '. $HTTP_SESSION_VARS['test'];
?>
<br><a href="page2.php">Next Page</a>
Page2.php:
<?php
session_start();
echo 'The content is '. $HTTP_SESSION_VARS['test'];
?>
<br><a href="page1.php">Previous Page</a>
If things would happening correctly, i would see the Hello World text
also page 2. Instead the PHP makes second session-file, so it can't
find correct one for my session.save_path directory.
Previous Comments:
------------------------------------------------------------------------
[2003-08-17 08:01:12] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-08-17 08:00:13] leo dot jokinen at laurea dot fi
Description:
------------
My session.save_path contains these sessionfiles. Every time when i
reload my page, the new file is being made. PHP won't find the current
session. This problem happens also when is redirect my code into
another php-file. I am running php with module of apache 1.3.28.
Some stats:
session.auto_start Off
session.bug_compat_42 On
session.bug_compat_warn On
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_divisor 100 1
session.gc_maxlifetime 900
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path /Program Files/PHP/sessions/
session.serialize_handler php
session.use_cookies On
session.use_only_cookies On
session.use_trans_sid Off
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25116&edit=1