Front End User - Cookie - Remember me on this computer problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
nivekiam

Front End User - Cookie - Remember me on this computer problem

Post by nivekiam »

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:
Warning: 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
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_decrypt

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
JeremyBASS

Re: Front End User - Cookie - Remember me on this computer problem

Post by JeremyBASS »

??? So any word on this..... must people wouldn't want to type in thier passwords and what not and more so when captcha is installed
nivekiam

Re: Front End User - Cookie - Remember me on this computer problem

Post by nivekiam »

No new word.  I haven't had any time to look into this further since then, nor have I filed a bug report if that's needed.

Captcha has nothing to do with this.
JeremyBASS

Re: Front End User - Cookie - Remember me on this computer problem

Post by JeremyBASS »

lol no i was not meaning that it had to do with captcha, I think i may have sometime to put in on this today but... I'd think it best if you did put in a bug report... I'm not sure how to do that myself or i would.  If i come up with something i'll post it up for you and others... Have a great day.
Jeremy Bass
Locked

Return to “CMSMS Core”