Solved

Delete session in logout and enforce NT authentication when login

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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 +…

696 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