#22186 [NEW]: php writes the session but cant be read

From: Date: Wed, 12 Feb 2003 13:38:48 +0000
Subject: #22186 [NEW]: php writes the session but cant be read
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32883@lists.php.net to get a copy of this message
From: cetan@szm.sk Operating system: win xp prof PHP version: 4.3.0 PHP Bug Type: Session related Bug description: php writes the session but cant be read My problem is in session. After session_register and assign value was createted session file with this ook|i:5;lp|s:2:"10"; but in second test page I want read from session and variables are empty and there is no answer on echo session_is_registered("ook"); This script show you where bug is ... ##### first test script <? session_start(); echo session_register("ook") ; $ook=5; echo session_register("lp") ; $lp="10"; ?> <a href="ook1.php">ook 1</a> ##### second test script #### <? session_start(); echo session_is_registered("ook") ; echo $ook; echo session_is_registered("lp") ; echo $lp; echo $_session['lp']; echo $HTTP_SESSION_VARS['lp']; ?> <a href="ook.php">ook</a> #### second test page answer is only link and no values in php.ini is session.save_handler = files session.save_path = /temp session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_dividend = 1000 session.gc_maxlifetime = 1440 session.bug_compat_42 = 0 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" I am runing on Apache 2.0.44 Thanx -- Edit bug report at http://bugs.php.net/?id=22186&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22186&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22186&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22186&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22186&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22186&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22186&r=support Expected behavior: http://bugs.php.net/fix.php?id=22186&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22186&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22186&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22186&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22186&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22186&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22186&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22186&r=gnused

« previous php.bugs (#32883) next »