|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-02 17:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 18:00:01 2025 UTC |
Description: ------------ Problem is only from browser Firefox and https connection (Mozilla and MSIE is right) Before running PHP script I removed all session file from /tmp directory. First attempt to script shows right data, but after refresh browser (F5), script gets sessions from unknown place and shows bad data (session data from another script). php.ini: register_globals=On Reproduce code: --------------- <? class Cuser { var $login; } $s=new Cuser; session_start(); session_register("s"); $s->login="john"; echo "<pre>"; print_r($_SESSION); echo "</pre>"; ?> Expected result: ---------------- Array ( [s] => cuser Object ( [login] => john ) ) Actual result: -------------- Array ( [s] => cuser Object ( [login] => john [login2] => [login_failed] => [login_test] => [form_stat] => [error] => [message] => [f_err] => [f_stat] => [f_warn] => [err_field] => [trans] => [iswar] => [menu] => [tisk] => [segmid] => ) [scr] => Array ( ) )