PHP 4.3.2 session problems (urgent help needed)
Posted: Thu Feb 12, 2004 9:32 am
Hi,
I am using php 4.3.2 on FreeBSD 4.4 and I am having a problem with
sessions.
As part of session variables I am storing an associative array and a simple numeric variable. Randomly, the associative array fails but my application is still able to retrieve the numeric variable from the session.
Is there any bug in PHP 4.3.2 concerning storing associative arrays as session variables? If not, what am I doing wrong.
<?php
session_start();
$ar = array();
$ar["username"] = "xxxx";
$ar["password"] = "yyyy";
$_SESSION["arrayvariable"] = $ar;
$_SESSION["numericvariable"] = 30;
Header("Location: page2.php");
?>
Now on page2,
I am not able to retrieve the associative array some times, but I am able to retrieve the numeric variable all the time.
Can you please tell me whats going wrong??
Thanks
DL
I am using php 4.3.2 on FreeBSD 4.4 and I am having a problem with
sessions.
As part of session variables I am storing an associative array and a simple numeric variable. Randomly, the associative array fails but my application is still able to retrieve the numeric variable from the session.
Is there any bug in PHP 4.3.2 concerning storing associative arrays as session variables? If not, what am I doing wrong.
<?php
session_start();
$ar = array();
$ar["username"] = "xxxx";
$ar["password"] = "yyyy";
$_SESSION["arrayvariable"] = $ar;
$_SESSION["numericvariable"] = 30;
Header("Location: page2.php");
?>
Now on page2,
I am not able to retrieve the associative array some times, but I am able to retrieve the numeric variable all the time.
Can you please tell me whats going wrong??
Thanks
DL