Solved

Delete session in logout and enforce NT authentication when login

Posted on 2011-09-14
4
456 Views
Last Modified: 2013-12-08
Hi all,

I have a web site with NT authentication.  after windows login form  and using the site, my users  logout using close button or using the  X of the web form.
the code of the Close button is:
     Session.Abandon()
        FormsAuthentication.SignOut()
        HttpContext.Current.Session.Abandon()
        HttpContext.Current.Session.Clear()
        Session.RemoveAll()
        Response.Flush()
        Session.Clear()
        Response.Expires = 0
        Response.CacheControl = "no-cache"
        Session.Contents.RemoveAll()
        Response.Write("<script language='javascript'>window.close();</script>")

this code work fine when there is only one IE page open and one TAB.
in this case if the user try to access the page again he will need to enter again the user and password.
But, if there are more tabs open or more web windows are open .and  the user close only the current system tub, the user can access the page without authentication  if he type the address again.

anyone has an idea please ?

KipaF
0
Comment
Question by:kipaFaduma
4 Comments
 
LVL 5

Accepted Solution

by:
Rainverse earned 500 total points
ID: 36537094
I honestly don't think you can do anything about this.  I've looked extensively in the past. You could try this solution, but it's complex: http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx

-MJC
0
 

Author Comment

by:kipaFaduma
ID: 36558138
Is there any other solution ? maybe a simple one ?
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 37163562
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question