To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > ASP, VB Script

Reply Post New Thread
 
Thread Tools Display Modes
Old May 2nd, 2007, 02:21 AM   #1
nebrom
Lively Member
 
Join Date: Mar 07
Posts: 118
nebrom is an unknown quantity at this point (<10)
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.
nebrom is offline   Reply With Quote
Old May 2nd, 2007, 10:25 AM   #2
Cyberskull
Junior Member
 
Join Date: Feb 06
Posts: 20
Cyberskull is an unknown quantity at this point (<10)
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
__________________
AdoSoft INC
A Software Development Company
Cyberskull is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > ASP, VB Script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:37 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.