Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / November 2003

Tip: Looking for answers? Try searching our database.

Session being lost. No application restart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GFV - 10 Nov 2003 12:24 GMT
Hi:

After executing the Page_init event of a page, the session is being
lost. When I put a breakpoint in the Session_end event of the
global.asax file, I verify that Session_end is being called. Of
course, I'm not calling session.abandon,  the timeout is 20 minutes,
and the page which looses the session is always the same.

Searching the web[1] I've seen that this could be related with
application restarts, but this is not the case because Application_end
is _NOT_ being called, and the performance monitor does not show
anything unusual in "ASP.NET\Application Restarts" or "ASP.NET\Worker
Process Restarts".

Framework version 1.1.4322.573
Microsoft Visual Basic .NET 7.1.3088

More details on demand. Does anybody has any hints?

Thanks

Gonzalo

[1] http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=7504
S Gopikrishna - 11 Nov 2003 06:38 GMT
Check in the application log in EVent Viewer for
recycling of the ASPNET worker process. If the worker
process is recycling then that is the Issue.

Antivirus programs some times recycle the ASPNET Worker
process. If there is a Antivirus program running stop it
and try checking your application

-Gopi

>-----Original Message-----
>Hi:
[quoted text clipped - 22 lines]
>[1] http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=7504
>.
GFV - 11 Nov 2003 11:11 GMT
> Check in the application log in EVent Viewer for
> recycling of the ASPNET worker process. If the worker
[quoted text clipped - 3 lines]
> process. If there is a Antivirus program running stop it
> and try checking your application

Thanks. I'm having ocassional Worker Process restarts on the logs, but
not correlated to the problem with the session.

The problem with the session is fairly reproducible (and wp crash is
not). It happens after processing an specific page. The session ends
(session_end event is called), and when next petition, starts
(session_start is called). Application events are not being called. It
seems it occurs with InProc sessionState, but also with stateserver
mode.

Maybe I'm doing something wrong...

Regards
GFV - 11 Nov 2003 11:44 GMT
> More details on demand. Does anybody has any hints?

Forget it. I was doing a session.abandon() several pages before, but
doing server.transfer, the actual session_end event was being called
when the last page transfered ended.

Thanks again

Gonzalo

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.