From:             njt1982 at yahoo dot com
Operating system: Windows 2003
PHP version:      4.3.2
PHP Bug Type:     Session related
Bug description:  Session ID not being passed on

Description:
------------
I am unable to get Sessions to pass data onto another PHP script. I am
using PHP 4.3.2 and Apache 2.0.46
here is my code:

login.php
<?php
session_name("nick");
session_start();
$SessID = Session_ID();
echo "<HTML>
                $SessID
                <BR><BR>
                Click <a href='./checkLogin.php'>here</a> to check the session
      </HTML>";
?>

checkLogin.php
<?php
        session_name("nick");
        session_start();
        echo Session_ID();
?>

What SHOULD happen is that checkLogin.php picks up that a session has been
made and then resumes it. But it doesn't. It simply makes a new
SessionID.

I have spent days reading around the forums

[Session]
session.save_handler = files
session.save_path = "I:/Webpage/tmp"
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_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 0
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = public
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=,fieldset="

PLEASE help me! I cannot understand what I'm doing wrong. The manual just
confuses me even more.. :-S

Thanks for any help that can be provided.


-- 
Edit bug report at http://bugs.php.net/?id=24668&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24668&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24668&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24668&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24668&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24668&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24668&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24668&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24668&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24668&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24668&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24668&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24668&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24668&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24668&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24668&r=gnused

Reply via email to