Solved

Delete session in logout and enforce NT authentication when login

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
send to option in chrome 11 56
Validation for a field in asp.net 3 30
Difference between Highcharts and Mapbox 10 44
Why am I losing my session variable value 11 39
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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
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 +…

734 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