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

php4 session_start cont.



it looks like php is starting the session, although somehow
the file /tmp/sess_$PHPSESSID gets cleared

here is a little test
I start with running the following:
<?
session_start();
session_register("test_var");
$test_var = "test variable";
print ("<a href=test.php>$test_var</a>");
print ("<br>");
print ($PHPSESSID);
print ("<br>");
$sess_reg=session_is_registered("test_var");
print ($sess_reg);
?>

the output:
test variable
40e24f16cdb89dc2b909e1a248c95fa7
1 >>(=true so the variable was registered) 

and the session file:
-rw-------    1 www-data www-data       30 Mar 15 15:55
sess_40e24f16cdb89dc2b909e1a248c95fa7
test_var|s:13:"test variable";

so up to this point everything is OK; now I follow the hyperlink

<?
session_start();
print ($PHPSESSID);
print ("<br>");
print ($test_var);
print ("<br>");
$sess_reg=session_is_registered("test_var");
print ($sess_reg);
?>

and the output is missing $test_var, the only thing that shows is the
session ID
40e24f16cdb89dc2b909e1a248c95fa7

and here is out /tmp session file
-rw-------    1 www-data www-data        0 Mar 15 15:56
sess_40e24f16cdb89dc2b909e1a248c95fa7

Once in a while during this test apache is reciving segfault
[Fri Mar 15 15:56:33 2002] [notice] child pid 4414 exit signal Segmentation
fault (11)
However it doesn't happen all the time and the tmp file gets cleared
anyways.

Any thoughts?

Marcin Kurc
CAD Systems Administrator
Cooper-Standard Automotive 



Reply to: