Google Answers Logo
View Question
 
Q: VB .net help ( No Answer,   2 Comments )
Question  
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

Request for Question Clarification by molloch-ga on 16 Jun 2004 06:16 PDT
Hi,

This may be a setting in the hosting. Are you hosting locally in IIS
or is it remote? Can you tell me what software is being used to host
if its remotely and I may be able to help you.

Molloch

Clarification of Question by tonymast-ga on 16 Jun 2004 10:13 PDT
Thanks

This is remotely hosted web sites. I believe the hosting softwaer is
IIS but i will have to verify.


I'm not using forms forms uthentication, but I will look at the namespace.

Clarification of Question by tonymast-ga on 18 Jun 2004 22:12 PDT
It's running on windows 2003 server.

Not using forms authenication. so FormsAuthentication.SignOut()
wouldn't work i don't think.
Answer  
There is no answer at this time.

Comments  
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.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy