
Vagharshak Tozalakyan - 2009-01-08 19:13:13 -
In reply to message 1 from carrucola
Hello,
I don't know how your script is organized, but typically you may need to call $ss->open() after checking the validity of the cookie.
Something like this:
$ss = new SecureSession();
....
if (isValidCookie()) {
$ss->open();
$_SESSION['validUser'] = true;
redirectToProtectedPage();
}
if (isset($_POST['login'])) {
if (isValigLogin()) {
$ss->open();
$_SESSION['validUser'] = true;
redirectToProtectedPage();
}
}