DotNet WebDev Newbe wrote: 1- When does each of these methods gets called, I understand that they are suppose to be called in the case of session ending and application ending, but what I’m looking for is in what case they actually get called: session time is over, what else. I am not sure but I guess that the Session_End would be called when the session times out. You can do a simple test on your machine, override the Session_Start and Session_End events, and write a line containing current date/time into some text file. You can also play with session timeout, set it to, say, 3 minutes and see if the Session_End is called after 3 minutes of inactivity. You can set the session timeout in the web.config file of your web application, e.g.
<configuration>
<system.web>
<sessionState mode="InProc" cookieless="false" timeout="90" />
</system.web>
</configuration>
DotNet WebDev Newbe wrote: 2- My problem is I expected them to be called once you close the browser (since the application and session are ending) but they didn’t, I also set breakpoint at them and never got to them Well, I guess that application is not ending when the session is ending. The Application object is shared among sessions, so you cannot expect the application to be started and ended along with sessions. DotNet WebDev Newbe wrote: 3- The BIG Question is I’m trying to get the FormAuthentication.SignOutcalled if the user closes the browser window he is working on so that the authentication cookie gets deleted You don't need to do this - FormsAuthentication uses either a persistent or non-persistent cookie. If you are using FormsAuthentication.SetAuthCookie to generate authentication cookie, the second parameter is bool createPersistentCookie. If this parameter is false, non-persistent cookie is created and this cookie is discarded when the browser is closed. DotNet WebDev Newbe wrote: 4- Is there a similar event handler to handle the closing of the browser window I am not sure if it is possible to detect such event on the server side, but it is possible on the client side using JavaScript, using the onUnload event. Rado