In my web application, I use the exit button which runs session.abandon to close the session and Then closes the browser. / P>
This does not work with multi-tabs in IE if I open my app in two tabs, then I click on the exit button in a tab which leaves the session and the tab is closed Does. But the app can still work in other tabs.
Is there a way to close this application session in all tabs?
Thanks
I believe you have a misunderstanding of the server session .
Closing the server session means clearing the session's ID and requesting the relevant data client to the client.
A session begins when a client reaches your web, and ASP.NET assigns a session identifier to it, after making sure the data is separate for this identifier Will be set.
When you abandon the session, that identifier's time expires.
Finally, when you open a new tab, ASP.NET starts a new session.
An asp.net is not like a windows application. "Application" always starts (except when the application pool is recycled, the IIS restarts or the application is not already used).
So, okay, you leave a user session, but the other tab should be in another session (if you have authentication, then it should be certified to work with your application, And so on).
Comments
Post a Comment