jaffan_nadir
asked on
Sign Out Button
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.
ASKER
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?
can you please givie me more inforamtion on destrying the session?
Session.Abandon() should do it, though you may also need System.Web.Security.FormsA uthenticat ion.SignOu t();
ASKER
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.?
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...
ASKER
No i am not using ASP. its just HTML basic site.
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.
ASKER
do you know of any utility that dose that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.