From:             neetisomaiya at gmail dot com
Operating system: Linux
PHP version:      4.4.7
PHP Bug Type:     Session related
Bug description:  Session variable accessible only in the page where it is set

Description:
------------
Hi,

I have 3 php scripts. 

In the first script I have a dropdown box, the user selects an organism
from this and clicks submit. This takes him to page2. In the page2.php
script, the organism value is set as a session variable. When I print the
organism name on page2 after setting it as a session variable, it works
fine and shows me the value that the user had choosen on the first page. 

This page2 has a second dropdown where the user chooses a pathway and
clicks submit. This takes the user to page3. In the page3.php script, the
pathway value is set as a session variable. When I print the pathway value
on this page3, it works fine, it shows me the value chosen by the user on
page2. But when on this page3 I try to print the organism value, which was
chosen on page1 and set as a session variable in page2.php, I don't get its
value.

What could be the problem?

I am using session_start() on both page2 and page3.

Expected result:
----------------
I expect to see both the organism name and pathway name on page3 because
both are session variables.

Actual result:
--------------
I get the organism name on page2 and pathway name on page3, but I want
both organism name and pathway name on page3. 

-- 
Edit bug report at http://bugs.php.net/?id=42751&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42751&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42751&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42751&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42751&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42751&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42751&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42751&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42751&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42751&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42751&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42751&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42751&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42751&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42751&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42751&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42751&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42751&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42751&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42751&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42751&r=mysqlcfg

Reply via email to