Solved

Sign Out Button

Posted on 2011-03-25
9
223 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 33

Expert Comment

by:paulmacd
Comment Utility
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
Comment Utility
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 33

Expert Comment

by:paulmacd
Comment Utility
Session.Abandon() should do it, though you may also need System.Web.Security.FormsAuthentication.SignOut();
0
 

Author Comment

by:jaffan_nadir
Comment Utility
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 33

Expert Comment

by:paulmacd
Comment Utility
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
Comment Utility
No i am not using ASP. its just HTML basic site.
0
 
LVL 33

Expert Comment

by:paulmacd
Comment Utility
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
Comment Utility
do you know of any utility that dose that?
0
 
LVL 33

Accepted Solution

by:
paulmacd earned 500 total points
Comment Utility
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

Suggested Solutions

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now