Solved

Sign Out Button

Posted on 2011-03-25
9
233 Views
Last Modified: 2012-06-27
I have created a site for my company, My manager wants one page on this site to be secure and need authentication to be accessed. So I changed the permission for this page In IIS. It works fine. The issue I have is Logging Off. I need to create a log out button so when they are done they can sign out. Right now if they close that page and open it again they still have access to it.  I am  hosting the site on a windows server 2008.
0
Comment
Question by:jaffan_nadir
[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
  • 5
  • 4
9 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35216932
How are they authenticating?

Often, it's a matter of destroying the session.  You can either put a button somewhere they can click or (perhaps) put some javascript in the page to detect the browser closing and killing the session that way.
0
 

Author Comment

by:jaffan_nadir
ID: 35217006
They are authenticating throw windows server, I created these users in Admin tools  then active directory users and computers .

can you please givie me more inforamtion on destrying the session?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35217055
Session.Abandon() should do it, though you may also need System.Web.Security.FormsAuthentication.SignOut();
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:jaffan_nadir
ID: 35217150
I have to admit that I am not a programmer, I just know how to use dreamweaver and that how I created the site.  So am gonna need more clarification .. so am I supposed to link the button to Session.Abandon() and that should do it.?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35218083
Sorry, I saw IIS and presumed you were using ASP.Net.  Let me know if that's the case and I can help you.  I know DW and ASP.Net don't play well together so it may be a bit tricky...
0
 

Author Comment

by:jaffan_nadir
ID: 35218537
No i am not using ASP. its just HTML basic site.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35218627
Ah, well unless Dreamweaver gives you some utility for it, there's probably not much you can do.  The session persists on the server for as long as it's configured to (default of 20 minutes).  I believe you would need some server-side code running in order to kill the session there.
0
 

Author Comment

by:jaffan_nadir
ID: 35261294
do you know of any utility that dose that?
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 35262404
I'm afraid not, but an alternative might be to shorten the default lifespan of all sessions.  If you set the session timeout to 5 minutes or something, anyone inactive for that long would have their session killed by the server.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

624 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