User MyFavorites not appearing after moving to another system User MyFavorites not appearing after moving to another system
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

User MyFavorites not appearing after moving to another system

Started by rmcneal, January 07, 2011, 03:24:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rmcneal

We currently have Coppermine 1.4 on out intranet system and we restored this to our test system in order to test the upgrade to 1.5.  Everything worked after the restore of 1.4 on the test system except that the user favorites are lost.  I looked in the _favpics tables on both systems and the value of the user_favpics looked the same for all the users.

I made sure that the path in the config is pointing to the correct server and all other features seems to be picking up this path,  so I was wondering if there was something we may have overlooked or if anyonelse has run into this problem?

Thanks in advance for the help!

Joe Carver

I am not 100% sure here, but start looking into cookies....

rmcneal

Yep you are correct. Looks like the user was adding favorites without logging on.  Looks like Coppermine stores the My Favorites location in a cookie named cpg143_fav when you do that.  I wrote a small php program to show the value of the cookie then I replaced the value of my cookie with the value of the user's cookie. Then all of the My Favorites appeared.  Thanks for the tip!