|
|
Subject:
VB .net help
Category: Computers > Programming Asked by: tonymast-ga List Price: $20.00 |
Posted:
15 Jun 2004 14:07 PDT
Expires: 15 Jul 2004 14:07 PDT Question ID: 361545 |
Using VS2002 - VB -- Access 2002 --- Web forms I'm to figure out why my session_end is not firing. I'm wrote a process to time people in my web site. I log them in at session_start works flawlessly. Now i try to log them out in the session_end event and nothing. i put response.redirect("http//www.whatever.com") in the session_end I tried session.timeout = 1 and i wait nothing i tried session.abandon i wait and nothing i put database update code in session_end and repeat the above and nothing. Below is the webconfig file setting <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20" /> I'm assuming if the session_start is working then this is set correctly. What am i doing wrong? also how can i catch the closeing X on a web form and/or the file>exit and/or changing websites. these are not important so if not super ez then forget it. just want to time people. will tip if t | |
| |
| |
|
|
There is no answer at this time. |
|
Subject:
Re: VB .net help
From: al445843-ga on 16 Jun 2004 07:14 PDT |
Have you tried FormsAuthentication.SignOut() within the System.Web.Security namespace. Let me know if this works so I can submit it as an answer, I also have javascript code for whenever a user tries to leave your page with the X, file-exit, etc. |
Subject:
Re: VB .net help
From: rpeck-ga on 26 Jul 2004 12:46 PDT |
The Session_End event is being called, it is just that a Server.Transfer or Response.Redirect command cannot be called from this event. The reason for this is that the server would in effect be trying to communicate with an 'expired' session (it's a rather puritanical approach but that is how it works). Try putting some code before the Server.Transfer and you can see it being called, however the subsequent redirect line will be ignored. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |