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