?
Solved

Delete session in logout and enforce NT authentication when login

Posted on 2011-09-14
4
Medium Priority
?
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
Rainverse earned 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
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…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 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