Solved

Sign Out Button

Posted on 2011-03-25
9
232 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
A procedure for exporting installed hotfix details of remote computers using powershell
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

710 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