Login Problems after using config.php and changing cookie name Login Problems after using config.php and changing cookie name
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Login Problems after using config.php and changing cookie name

Started by Joehose, September 25, 2005, 04:51:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joehose

Hi,

After chaning some stuff using config.php I can no longer log in. (I changed the cookie name and a couple of other things. I don't really remember what all.) But I think changing the cookie name is the source of my problem. The problem is that I can no longer login. When I go to the login page I now get:

Warning your browser does not accept script's cookies

Since I can't login now I can't run config.php anymore. Is there a way I can manually edit the stuff that gets changed by config.php? (i.e. ftp in and download some file make changes to the cookie stuff and re-upload the file.) This is the only thing I can think of to try to get back to my original configuration but I can't figure out what file to edit.

I have searched the forums and found similar problems but have not found a solution to my problem. If I have overlooked a solution I appologize, and could someone please point out that solution.


  • I have the same problem with both IE and Firefox. (login was working before I tweaked the cookie setting using config.php so I my browser cookie settings should be ok).
  • I am using coppermine ver. 1.3.3.
  • My server used PHP 4.4.0.
  • My server is running some flavor of Linux.

Your help is most appreciated.

Joehose

Joehose

I fixed this problem myself. Here are some details:

I found this post useful:

          Changed cookie name, login stopped working - how to change it back?
          http://forum.coppermine-gallery.net/index.php?topic=17717.0


When I renamed cookies using config.php I used a "." (period) in the new name. I guess this is a no no. I followed the directions in the above post to correct my cookie problem. It worked.

Joehose





Joachim Müller

Thanks for returning and posting your fix. Indeed, there mustn't be dots in cookie names. This is not something specific to coppermine, but cookies in general. To be safe, only use letters and numbers for cookie names, no special chars at all. This is the case for many systems: depending on the system, special chars have special meanings, so it's always the safest method not to use special chars at all.