NetTalk Central

Author Topic: force user to logout  (Read 3146 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
force user to logout
« 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.

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: force user to logout
« Reply #1 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.   

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: force user to logout
« Reply #2 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