Session variables disappear?
Posted: Fri Jan 07, 2005 6:34 am
I'm not sure why but my session variables are vanishing! I've got this code snippet below and the signup() function uses the session to add information to the database. When the page is redirected by the header call all the session variables are gone. Why?
Thanks,
Jim
Thanks,
Jim
Code: Select all
<?php
if (!signup()) {
session_destroy;
echo '<p align="center" class="warning">
There was a problem processing your signup. Please try again later.';
} else {
header("Location:http://somplace.php");
}
?>