how to close session of the same application in all tabs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chasage
    New Member
    • Feb 2011
    • 2

    how to close session of the same application in all tabs

    Hi,

    In my web application, I use an exit button which runs session.abandon to close the session and then close the browser.

    It does not work with multi-tabs in IE. If I open my application in two tabs, I click on the exit button in one tab which abandons the session and close the tab. But the application in another tab can still work.

    Is there any way to close the session for this application in all the tabs?

    Thanks
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    clear all the session variables; that clears all them for all tabs.

    Comment

    • nur alam
      New Member
      • Mar 2011
      • 9

      #3
      Make the answer clear by mentioning c# code..
      please........
      thanks.

      Comment

      • kadghar
        Recognized Expert Top Contributor
        • Apr 2007
        • 1302

        #4
        simply clear all the session variables
        Code:
        session.clear();

        Comment

        Working...