Hi All
We need all users to logout after 1hr due to security reasons.
I have searched the forum but haven't found a complete answer.
How can we eitherĀ
- Remove "Remember me" from Members Login page
- Update Cookies to change login time
- Create a SQL script to run each hour to log all users out if they have been logged in for more than 1hr
Help on this would be much appreciated
Thank you in advance
MATO
have you tried
this method ..
removing
remember me check box :
you have to remove code similar to below in
member_login template
& few other templates
<tr>
<td class="trow1" colspan="2" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" /> {$lang->remember_me}</label></td>
</tr>
other templates with
remember me
:
header_welcomeblock_guest_login_modal
portal_welcome_guesttext
error_nopermission
not sure if I missed few other templates which have login form & remember option
With the above suggested method of changing the expire time variable, maybe another quicker way that won't need modifying many templates is to change the language entry for remember_me
to some value like Remember my login for 1 hour.
Thank you.
.M.
I had removed every "remember me" apart from "error_nopermission"
and
Noyle where is the expire time variable stored?
(2020-02-26, 02:36 PM)MATO Wrote: [ -> ]Noyle where is the expire time variable store?
Check the link in @.m.'s post:
have you tried this method ..
Should be in file
./inc/functions.php
in
my_setcookie()
function:
Adjust this part of code according to your need:
...
if($expires == -1)
{
$expires = 0;
}
elseif($expires == "" || $expires == null)
{
$expires = TIME_NOW + (60*60*24*365); // Make the cookie expire in a years time
}
else
{
$expires = TIME_NOW + (int)$expires;
}
...
Caution: modifying this variable would also affect AdminCP's cookies time.
That works - Excellent
Thank you Both