Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sign Out Button

Posted on 2011-03-25
9
Medium Priority
?
235 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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 2000 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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

719 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