setting timer for logout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    setting timer for logout

    Hi to all,

    I have created a page with login and logout. i used session to register the login user and when he clicks in logout, it will destroy the session.

    this is nice but if system is closed without logout or went out without logout means how can i secure my page, i got the point that is timer.

    But i dont know how to use timer in session expires etc., can anyone help me to setup timer for logout using php please.

    Thanks in advance,

    Regards
    magesh
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    maybe one of the following threads answers your question:



    regards

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      If you can't (or don't want to) mess with the configuration, you can always simply store the last known time the user was active in the session, and then destroy it if the user returns to late.

      Comment

      Working...