php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22186 php writes the session but cant be read
Submitted: 2003-02-12 07:38 UTC Modified: 2003-02-13 19:03 UTC
From: cetan at szm dot sk Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: win xp prof
Private report: No CVE-ID: None
 [2003-02-12 07:38 UTC] cetan at szm dot sk
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-13 19:03 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Support questions are better asked on php-general@lists.php.net

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 16 21:00:02 2025 UTC