Auto Logout After Idle Time Limit

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
michaelmcewen
User
Posts: 78

Auto Logout After Idle Time Limit

Post by michaelmcewen »

I need the app to logout (or at least not be logged in anymore) after a certain number of minutes. So, if someone walks away from their desk, it doesn't stay logged in...like most account website (banks, etc).

Any help will be appreciated! Thanks!


scs
User
Posts: 694

Post by scs »

Are you talking about auto logout after inactive after said 5 minutes (300 second)?
300 means 5 minutes. you can set to whatever reasonable second you like.

If so, this might be the script you're looking for
Put the 4 lines script in Server Events->Global->All Pages->Page Hearder

if (isLoggedIn()) { ?>
<meta http-equiv="refresh" content="300; url=logout.php">
<?php } ?>
<?php


michaelmcewen
User
Posts: 78

Post by michaelmcewen »

Thanks! I'll give that a try.


Post Reply