how to track user logged out or not? when user is idle ?

Author Topic: how to track user logged out or not? when user is idle ?  (Read 346 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
By checking the session variable exist or not while loading th page. As the session will exist longer as till browser closes. The default behaviour for sessions is to keep a session open indefinitely and only to expire a session when the browser is closed. This behaviour can be changed in the php.ini file by altering the line session.cookie_lifetime = 0 to a value in seconds. If you wanted the session to finish in 5 minutes you would set this to session.cookie_lifetime = 300 and restart your httpd server.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
952 Views
Last post 11-10-2011, 13:33:08
by pehlavoon
8 Replies
2662 Views
Last post 12-18-2016, 20:41:53
by LaurentHector
0 Replies
633 Views
Last post 07-08-2015, 05:25:18
by Queen Mary
0 Replies
467 Views
Last post 12-11-2015, 05:02:22
by thefriendlancer
0 Replies
355 Views
Last post 02-24-2016, 03:11:13
by chinmay.sahoo