Click to See Complete Forum and Search --> : if session expired redirect them to login page


roshanjameer
04-11-2007, 01:35 PM
hi,


when ever a user login, his information(name,login-time..etc) will be stored in sessions and also stored in users table.
the table has following fields
1.userid 2.userlogin_time(session_created_time) 3.session_expiry_time.4.session_timeout.

it's values are
1----10:10:10-----10:34:10----11:46:10
here session_expiry_time is 24 minutes more than the session_created_time.the session_timeout is 72 minutes more that session_created time.ok
what i want to do is if a user login and does not do any thing for next 24 minutes i want to redirect the user to login page.

how i can do this.any of your help will be appreciated
thanks
mrjameer.