#40973 [Fbk->Opn]: session don't work if used $_SERVER in any way
| From: | krassesache at gmx dot net | Date: | Thu, 05 Apr 2007 00:39:01 +0000 |
| Subject: | #40973 [Fbk->Opn]: session don't work if used $_SERVER in any way | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111130@lists.php.net to get a copy of this message | ||
ID: 40973
User updated by: krassesache at gmx dot net
Reported By: krassesache at gmx dot net
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: WinXP SP2
PHP Version: 5.2.1
New Comment:
okay,
no firewall / windows firewall is off
phpinfo() of my localhost: http://blakkcooper.de/phpinfo.php.html
you see session.referer_check is set to "no value". no matter if i set
it to "0" or "1", the sessions don't work. it works only with "no
value".
i tested the example again and this happened:
opened http://localhost --> no session established (normal)
opened http://localhost/foobar.php --> new session
established
opened http://localhost/foobar2.php --> a NEW SESSION
was established
(news SESSID)
i tested this with firefox 2.0.0.2, opera 9.02 and
session.referer_check = 0
it's nuts! my example works sometimes, sometimes not?! it seems that
it's random... on my website it works NEVER. it's like god will fuck me
up -.-
Previous Comments:
------------------------------------------------------------------------
[2007-04-04 18:46:53] tony2001@php.net
Please provide some more information on your environment: the webserver
used, server API (cgi or module).
Do you have any firewalls that might affect it?
Are you sure the code provided is enough to reproduce it?
------------------------------------------------------------------------
[2007-04-04 18:31:36] krassesache at gmx dot net
okay, dont know why but in my case it's the reason. maybe a very
specific problem. never mind...
------------------------------------------------------------------------
[2007-04-04 18:06:53] tony2001@php.net
Works perfectly fine whatever I do and doesn't depend on the value
ofsession.referer_check.
------------------------------------------------------------------------
[2007-04-04 16:24:42] krassesache at gmx dot net
ich got it!!!
if i set
session.referer_check = 1
session.referer_check = 0
in php.ini, the problem appears
if i set it to
session.referer_check =
the session will work?!
------------------------------------------------------------------------
[2007-04-04 16:04:25] tony2001@php.net
Cannot reproduce.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40973
--
Edit this bug report at http://bugs.php.net/?id=40973&edit=1