Front End User - Cookie - Remember me on this computer problem
Posted: Mon Jan 21, 2008 1:29 pm
If I set the preference to "Use cookies to remember login details:". You then have another checkbox when the user logs in "Remember me on this computer"
It does appear to be setting a cookie, but not for any expiration time I set for session timeout (as mentioned here: http://forum.cmsmadesimple.org/index.ph ... 365.0.html), instead it sets the expiration data a year ahead.
I found this line in FrontEndUsers.module.php
$expires = time()+(3600*24*365);
It doesn't appear to be grabbing any expiration value from the database.
I also get these error messages when I check that check box:
Let me know if this is a bug that needs to be filed or if you need any other information.
PHP version = 5.2.4 apache2handler
Webserver = Apache/2.2.4
Database = mysql 4.1.20-log, lock.system=flock
Operating system = FreeBSD servername.host.com.com 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
It does appear to be setting a cookie, but not for any expiration time I set for session timeout (as mentioned here: http://forum.cmsmadesimple.org/index.ph ... 365.0.html), instead it sets the expiration data a year ahead.
I found this line in FrontEndUsers.module.php
$expires = time()+(3600*24*365);
It doesn't appear to be grabbing any expiration value from the database.
I also get these error messages when I check that check box:
Upon digging into that I found that the mcrypt_ecb() function is deprecated, http://theserverpages.com/php/manual/en ... b.php But I wasn't able to figure out what to change to make it work with mcrypt_generic or mdecrypt_generic or even mcrypt_encrypt or mcrypt_decryptWarning: mcrypt_ecb() [function.mcrypt-ecb]: Size of key is too large for this algorithm in /path/to/my/cmsms/install/modules/FrontEndUsers/FrontEndUsers.module.php on line 2023
Warning: mcrypt_ecb() [function.mcrypt-ecb]: Attempt to use an empty IV, which is NOT recommend in /path/to/my/cmsms/install/modules/FrontEndUsers/FrontEndUsers.module.php on line 2023
Let me know if this is a bug that needs to be filed or if you need any other information.
PHP version = 5.2.4 apache2handler
Webserver = Apache/2.2.4
Database = mysql 4.1.20-log, lock.system=flock
Operating system = FreeBSD servername.host.com.com 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11