Results 1 to 2 of 2

Thread: session time outs?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    10

    session time outs?

    how do i time out a particular session after a fixed time interval?
    does it have to do something with time() and session_destroy()?

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    session_destroy() is used to manually kill a session but it doesn't unset any of the global variables associated with the session (use session_unset() to do that).

    To set a time out, I'm pretty sure you need add this to your php.ini

    session.gc_maxlifetime = time in seconds

    You might also want to set session.cookie_lifetime to the same figure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width