B4, unable to login to admin again

Trekkan

Joined: 2005-07-31
Posts: 2
Posted: Sun, 2005-07-31 21:11

Ok, I know why I can't login as admin now (it did work), I just don't know how to fix it.

Basically I remember a setting for cookies and the path for them. I, thinking I had a clue, changed this. Now when I enter my admin login/pass it accepts it, but due to the cookie problem I can't get to any of the admin functions.

I tried looking in the database and config file for these settings so I could clear them, but couldn't locate them.

----

Gallery URL (optional):
Gallery version: 2.0 B4
Webserver (with version): II6
Datatabase (with version): mySQL 4.1
PHP version (eg 4.2.1): 4.3
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: Win 2k3
Web browser/version: IE6
G1 version (for migration bugs):

 
Trekkan

Joined: 2005-07-31
Posts: 2
Posted: Sun, 2005-07-31 21:18

I actually found the problem. There were two cookies created. I missed killing one of them as it was further down the list and I didn't see it.

Short version of what could happen to someone else I suppose.

I set everything up with a problem (excellent install BTW).

Then, after this was all done, I eventually changed the cookie setup(15 minutes later or something).

The web browser was reading the OLD cookie instead of the new one that was generated, so I didn't have access. Now that I've cleared them all out and only have the one (new) cookie, all is well.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-31 21:19

heh, i knew this would come.

so you changed the cookie path in site admin. and now you can't login. probably, because you set the path to a wrong value.

but maybe the case is much simpler: habe you already cleared your browser cookie cache?
in Firefox,you could delete the specific cookie. in IE, you have to delete all cookies, there's no option to just delete a single cookies.

if clearing the browser cookies doesn't solve it, you'll have to change the cookie.path value in the database table g2_pluginparametermap, and then flush the cache in lib/tools/test/.