How can I delete an ASP.NET session when the user is moving away from my site? Use the global.ascx application file and session_end event. When I click the Logout button, but when I close the browser, it does not use the global file after 20 minutes. I have the Session terminates when some session will be lost after some idle time. If you want more control over sessions, you will need to use SQL Server Mode, State Server Mode, or yourself a custom one. I mean, because, for example, SQLServer mode stores sessions in a standard SQL Server table, therefore, you can implement some SQL Server jobs, or in Windows or some Windows You can schedule some work in the service, so that you can clear the session based on your needs. By the way, you should know that if you are using InProc, your sessions may be lost because the IIS recycled application pool, or the server has been completely restarted. And this session is not ending, so episode events and handlers will not work in this scenario. I repeat, if you need better session management mode as I suggest you. Edit Check this page: You will learn how to manage session time better, because Session_de is not called when one session ends, but when you say "session. & lt; SessionState mode = "InProc" timeout = "20" & gt; & Lt; / SessionState & gt;
Please help me
Augustine / div>
Comments
Post a Comment