#30353 [NEW]: Loosing the session
| From: | mani_he at yahoo dot com | Date: | Thu, 07 Oct 2004 16:09:03 +0000 |
| Subject: | #30353 [NEW]: Loosing the session | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-67249@lists.php.net to get a copy of this message | ||
From: mani_he at yahoo dot com
Operating system: Windows XP Home Edition
PHP version: 4.3.8
PHP Bug Type: Unknown/Other Function
Bug description: Loosing the session
Description:
------------
I made 2 pages that both have to have a session.
on all pages I start the session_start();
So let see
I have page1.php and page2.php
on page1.php I start the session and I used the $_SESSION to ceate the
session. and after that I use echo to see my session variable, when i go
to page1.php
on page2.php again I start session_start(); and I try to echo my session
in page2.php, But seems that I loose my session, or the connection is
gone
I wondering that you guys can help me.
php.ini config
session.save_hander = files
session.save_path = C:\WINDOWS\Temp
sesion.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = C:\WINDOWS\Temp\Coockies\
session.cookie_domain = none
session.serialize_handler = php
session.referer_check =
session.entropy_length=0
session.entropy_file =
session.cache_limiter = private
session.cache_expire = 180
session.use_trans_sid = 0
I'm using php 4.3.8 and mysql and apache 1.3 31 in windows Xp Home
Edition
Thank You
Reproduce code:
---------------
//page1.php
<? session_start(); ?>
<html>
<body>
<?php
$_session['user']= "NAME";
echo $_session['user'];
?>
<a href="page2.php">page2</a>
</body>
</html>
this page will show us the NAME
//page2.php
<? session_start(); ?>
<html>
<body>
<?php
echo $_session['user'];
?>
<a href="page2.php">page2</a>
</body>
</html>
Expected result:
----------------
page1.php
I can see NAME
Page2.php
Nothing
--
Edit bug report at http://bugs.php.net/?id=30353&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30353&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30353&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30353&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30353&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30353&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30353&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30353&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30353&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30353&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30353&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30353&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30353&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30353&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30353&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30353&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30353&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30353&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30353&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30353&r=mysqlcfg