I've done a remember me button for the login interface I'll post it here in case someone wants to use it.
Line 97 in file "a2customer/templates/default/index.tpl"
Code:
<tr align="center">
<td></td>
<td align="left"><input type="checkbox" name="remember"><font face="Arial,Helvetica, Sans-Serif" size="2"> Remember me next time.</font></td>
<td align="right"><input type="submit" name="submit" value="LOGIN" class="form_input_button"></td>
</tr>
Line 30 in file "a2customer/lib/lib/module.access.php"
Code:
if(isset($_COOKIE['PHPSESSID'])){
setcookie("PHPSESSID", "",time()-60*60*24*365, "/");
}
Line 102 in file "a2customer/lib/lib/module.access.php"
Code:
if(isset($_POST['remember'])){
setcookie("PHPSESSID",$_COOKIE['PHPSESSID'], time()+60*60*24*365, "/");
}
Sorry, but this is not working. It stops working when the session expires in the server, jeje. I didn't think about that. I'll try to fix it.
Any ideas?