Solved

Sign Out Button

Posted on 2011-03-25
9
231 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

830 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