Session not retained
Hi Jason,
Thank you for your reply. I am indeed aware of this function and already used it but without any success. The session is not being retained.
In my case, I have a form divided on two pages. step1.php and step2.php
On top of the first page I started the session handling:
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
I have then applied the session value to all the form elements:
<?php
@session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["mem1_Title"] = "".((isset($_POST["mem1Title"]))?$_POST["mem1Title"]:"") ."";
}?>
For the second page I have again used sessions:
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
But when I want to read the session value like this: <?php echo((isset($_SESSION["mem1_Title"]))?$_SESSION["mem1_Title"]:"") ?>
I get nothing, the session is empty.