NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on December 02, 2010, 09:28:25 AM

Title: force user to logout
Post by: olu on December 02, 2010, 09:28:25 AM
their is a session on my site where people login and update various files, is there a way to force them to logout before they can navigate to other parts of the website.
Title: Re: force user to logout
Post by: CaseyR on December 02, 2010, 02:32:55 PM
You could create a session value and set it to true when they log in.  Then clear the session value when they log out. Make all the other pages conditional on the session value being false.   
Title: Re: force user to logout
Post by: kevin plummer on December 02, 2010, 03:37:33 PM
You could set the logged out property on all you other web pages but obviously this would only work if the user clicks on your pages and not other web site pages. In this case you should also set the logged in time to be very short so it will automatically log the user out if there is no activity for say 5 mins like bank web sites. You set this in the webserver settings template