Results 1 to 4 of 4
Apr 1, 2002, 12:46 #1
Problem with Login script / session_cache_limiter
Hi. I have a user management script that is essentially Kevin Yank's script. I added a session_cache_limiter in an attempt to get rid of the annoying "Page has expired" warnings that come up whenever a user clicks on the "BACK" button. It works great, but it has the unintended effect of logging the user out (I guess it just drops the "uid" and "pwd" session variables). At least that's what happens when I put the session_cache_limiter before the session_start. When I put it AFTER the session_start, it doesn't log the user out, but it also doesn't work! That is, it reverts back to the "Page has expired warnings". Can anyone help? Here's a snippet below. Thanks!
<?php // accesscontrol.php
include($DOCUMENT_ROOT . "/../includes/common.php");
include($DOCUMENT_ROOT . "/../includes/db.php");
//We're trying the following in an effort to fix those annoying "Warning: Page has expired" messages.
Apr 1, 2002, 13:22 #2
- Join Date
- Sep 2001
- BC, Canada
- 0 Post(s)
- 0 Thread(s)
Apr 1, 2002, 14:26 #3
Been there, done that. :-) There were similar issues, but nothing that quite seemed to help solve my dilemma. Thanks anyway.
Apr 2, 2002, 07:58 #4
Hmmm, I tried replacing 'private' with 'private_no_expire' in the session_cache_limiter and it seems to have worked, though I can't say for sure why.