Session has new id on 'some' pages.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

We have a extensive software that uses php session to store some very basic 
session information.

ALL, and I do mean ALL files (except for globals.php) start like this:

<?php
  require_once "../scripts/globals.php";
...
?>

And the file globals.php starts with
<?php
session_start();


We have hit a bug that we do not understand.  On our test servers (php 4.3.11, 
php 4.3.10, and php 4.2.0) everything works as intended.  Putting someting in 
the session variables is remembered on every other page.

We actually deployed the product on a php 4.3.8 server and there we get the 
complaint that session data is only remembered on 'some' pages.  After 
verification, it seems that on the pages that do not reproduce the session 
data, a second session is used.

page 1: session id L43403470384, session data: OK
click link to page 2: session id DG5475232780, session data: null
click link back to page 1: session id L43403470384, session data: OK
click link to page 3: session id DG5475232780, session data: null
click link to page 4: session id L43403470384, session data: OK

Has anyone seen this behaviour before, or has any clues what is the problem?


With kind regards


Andy


--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--

Attachment: pgpk77xcymRwE.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux