Link to home
Start Free TrialLog in
Avatar of Bakersville
BakersvilleFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Session Timeout asp.net

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
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bakersville

ASKER

Thank you for this.

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

Baker
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you both.  Made all the changes and it seems to be working ok.

Baker