session timeout unexpectedly

This is a discussion on "session timeout unexpectedly" within the ASP.NET Forum section. This forum, and the thread "session timeout unexpectedly are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 10th, 2005, 17:19
New Member
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
session timeout unexpectedly

I am doing a website with asp.net. i have used session variable in my global.asax file. the code is given below:

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Session.Timeout = 100
Session("Loggedin") = "No"
End Sub

Sub Session_End(Sender As Object, E As EventArgs)
' Code that runs when a session ends

Session.Abandon()
Response.Redirect("index.aspx")
End Sub

And in webconfig i have used the following information inside <system.web> tag :

<sessionState mode="InProc"
cookieless="false"
timeout="120"/>

<pages buffer="false"
enableSessionState="true"
smartNavigation="false"
autoEventWireup="true"
validateRequest="false"
enableViewStateMac = "false"
enableViewState="true"/>

Even after using these things when i login suddenlt after a min i am logged out though i am adding records at the moment.
Please please tell me where i am going wrong. I have to give this project to my boss soon and i am stuck here since i am not

able find out the problem.
Seema

(Mail : gaur.seema at rediffmail.com)
Reply With Quote

Reply

Tags
session, timeout, unexpectedly

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFQuery timeout tallgal2007 Other Programming Languages 0 Jul 18th, 2007 14:56
Session Timeout problem LameesAyman ASP.NET Forum 2 May 2nd, 2007 14:45
Session variables ideleon PHP Forum 2 Feb 7th, 2006 08:04
session variable Monie Classic ASP 7 Aug 30th, 2004 03:52
session php iamzoli PHP Forum 2 Apr 7th, 2004 05:49


All times are GMT. The time now is 15:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43