Solved

Session Timeout asp.net

Posted on 2011-03-04
4
360 Views
Last Modified: 2012-05-11
Hello everyone.

I don't get what i am missing, i have a asp.net website and i need a session to last at least 2 hours. So what i have done is,

In IIS, right clicked the website adn gone to proerties, Click Home Directory tab, Click configure. In configure i click the options tab adn chaged Enable Session State to 120 minutes.

Within my code i have written the following after the session

Session.Timeout = 120.

However, the session only last about 5 minutes.

Can anyone help me with this.
Thank you in advanced
Baker
0
Comment
Question by:Bakersville
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 250 total points
ID: 35035337
In webconfig file...


<system.web>

.......


<sessionState timeout="120"></sessionState>

</system.web>
0
 
LVL 1

Author Comment

by:Bakersville
ID: 35035375
Thank you for this.

I have updated my webconfig file and will let you know how i get i.

Baker
0
 
LVL 14

Assisted Solution

by:Dhanasekaran Sengodan
Dhanasekaran Sengodan earned 250 total points
ID: 35035440
0
 
LVL 1

Author Closing Comment

by:Bakersville
ID: 35067169
Thank you both.  Made all the changes and it seems to be working ok.

Baker
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

18 Experts available now in Live!

Get 1:1 Help Now