|
|
#1 |
|
Lively Member
Join Date: Mar 07
Posts: 118
![]() |
how can i make session or cookies expired?
I am using asp . i have a login page. then after a user has logged in.
the user must wait only for certain minutes let me say it ten minutes.with in this 10 minutes he can post messages.but after 10 minutes he has logged in if he wants to post any message he must login again because the time limit after he logged in is already expired so how could i do so. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 06
Posts: 20
![]() |
Re: how can i make session or cookies expired?
Well here is the thing.
If you want the user to be logged out even if he/she is active on the page then you can't use Session.Timeout because that will only timeout if the user is not active. If you want the user to be logged out if he is active then you have to create a new session with the timestamp of when he/she logged in. Then every time the page is refreshed check that session to see if it's more then 10 minutes and if so log the user out. Hope that helps. Ado |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|