forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: rmcneal on January 07, 2011, 03:24:39 pm

Title: User MyFavorites not appearing after moving to another system
Post by: rmcneal on January 07, 2011, 03:24:39 pm
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!
Title: Re: User MyFavorites not appearing after moving to another system
Post by: Joe Carver on January 07, 2011, 11:46:34 pm
I am not 100% sure here, but start looking into cookies....
Title: Re: User MyFavorites not appearing after moving to another system
Post by: rmcneal on January 07, 2011, 11:57:36 pm
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!