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
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > ASP, VB Script

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old May 2nd, 2007, 03:21 AM   #1
nebrom
Lively Member
 
Join Date: Mar 07
Posts: 115
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, 11:25 AM   #2
Cyberskull
Junior Member
 
Join Date: Feb 06
Posts: 19
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 Search this Thread
Search this Thread:

Advanced Search
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 02:36 PM.




To view more projects, click here

Acceptable Use Policy


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.