Solved

Seesion Expire

Posted on 2004-08-26
8
244 Views
Last Modified: 2010-04-23
How do I set the session to expire in vb.net
thank you
0
Comment
Question by:yalamanchir
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 7

Expert Comment

by:ramesh12
Comment Utility
session.abandon
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
Comment Utility
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp explains well (and is a good overall article) ... if you look in your web.config  there is a line that looks like ..

<sessionstate
      mode="inproc"
      cookieless="false"
      timeout="20"
      sqlconnectionstring="data source=127.0.0.1;user id=<user id>;password=<password>"
      server="127.0.0.1"
      port="42424"
  />


change the value of the timeout="" field.
0
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
whoops I think I read the question wrong ... session.abandon is correct.
0
 
LVL 7

Expert Comment

by:ramesh12
Comment Utility
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 18

Expert Comment

by:DotNetLover_Baan
Comment Utility
If you want to set a time for the session to expire...
Session.TimeOut = 5 'Will expire in 5 mins
0
 
LVL 28

Expert Comment

by:iboutchkine
Comment Utility
DotNet
I thought that 5 min will be 5*60*1000 = 300000
or am I wrong?
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
Comment Utility
nope... TimeOut property takes integer and set it in minutes... (not it milli seconds, as we have in Timer object)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebSessionStateHttpSessionStateClassTimeoutTopic.asp

-Baan
0
 
LVL 28

Expert Comment

by:iboutchkine
Comment Utility
I probably got confused because in JavaScript it is in milliseconds. I am using

window.setTimeout("alert('you will be logged off in 5sec');",5000);
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now