|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-13 19:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 21:00:02 2025 UTC |
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