Solved

Delete session in logout and enforce NT authentication when login

Posted on 2011-09-14
4
454 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
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 +…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now