coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: outdoorresearch on May 16, 2007, 09:37:51 PM

Title: Login cookie change from 1.3.3 to 1.4.10
Post by: outdoorresearch on May 16, 2007, 09:37:51 PM
We recently upgraded from 1.3.3 to 1.4.10. It appears that the method of knowing whether a user is logged in or not has changed. In 1.3.3, there were two cookies set (cpg133_uid and cpg133_pass) when a user logged in. By setting these cookies, I could basically "force" a specific user to be "logged in" without having to go through the Coppermine login screen. In 1.4.10, this does not seem to work anymore.

Does anyone know how Coppermine maintains user login status in 1.4? Is it done through a PHP session now rather than cookies?
Title: Re: Login cookie change from 1.3.3 to 1.4.10
Post by: Nibbler on May 16, 2007, 09:58:10 PM
It's done using a single session (not php sessions) cookie. See bridge/coppermine.inc.php
Title: Re: Login cookie change from 1.3.3 to 1.4.10
Post by: outdoorresearch on May 17, 2007, 01:27:21 AM
Thanks for the reply. It appears that the way 1.4.10 handles logins is quite a bit differently than 1.3.3 . It was nice in 1.3.3 to be able to just set two cookies and be logged in. Now there is interaction with a record in the session table which requires a bit more manuvering to get around.