On Mon, Feb 25, 2008 at 11:54 AM, Manuel Barros Reyes <[EMAIL PROTECTED]> wrote:
> The question is asked only in the index.php and the answer is stored
> in $_SESSION["pais"]. If the user tries to enter the site once again
> and the session variable is still set the question is not asked again
>
] Set PHP session expire to 2 months
Hi, I'm working on a site that needs that once the user chooses his country
the question should not be asked again (while the user doesn't manually
delete the cookies in his browser).
The question is asked only in the index.php and the answer is stor
Hi, I'm working on a site that needs that once the user chooses his
country the question should not be asked again (while the user doesn't
manually delete the cookies in his browser).
The question is asked only in the index.php and the answer is stored
in $_SESSION["pais"]. If the user tries to en
Run that again about php.ini configuration on the session expiration. I
looked up at http://www.php.net/manual/en/ref.session.php and it said
--snip--
session.cache_limiter specifies cache control method to use for session
pages (none/nocache/private/private_no_expire/public). Defaults to nocache
--- redips <[EMAIL PROTECTED]> wrote:
> I know that if I set a session, by default it will expire when the
> browser closes. Can I also set a timeout?
You can look through your php.ini, searching for the word session. I prefer,
however, to keep a timestamp of the user's last access in the session
Start here:
www.php.net/session
You should read it from the main heading to the last line of the last
comment.
redips wrote:
I know that if I set a session, by default it will expire when the
browser closes. Can I also set a timeout? For example, if the session is
idle for 30 minutes it will e
I know that if I set a session, by default it will expire when the
browser closes. Can I also set a timeout? For example, if the session is
idle for 30 minutes it will expire or if the user closes the browser, it
will also expire.
I know I can do one or the other, but what about both?
Thanks.
7 matches
Mail list logo