Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Unable to Login on Subdomain.  (Read 3764 times)

0 Members and 1 Guest are viewing this topic.

krkeegan

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 53
  • ahh the life...
    • Kevin's Photos
Unable to Login on Subdomain.
« on: April 15, 2005, 06:49:01 pm »

I am running 1.4.x but I don't think this is an issue relating to the devel version.

I have a gallery at:
http://gallery.krkeegan.com
Which is an apache subdomain of:
http://www.krkeegan.com/gallery

All of the pix work fine, but I think I am having a cookie problem. I am unable to login from the subdomain. However from the full address I can log in just fine. I created a test account:
User/Pass = test

I have seen that others had issues to, but I have not seen a resulting answer. I am reasonably sure that my subdomains are setup correctly I am running cPanel 9.x.

Thanks

Kevin
« Last Edit: April 16, 2005, 07:37:25 am by GauGau »
Logged
There are no stupid questions, only stupid people. -Mr. Mackey, South Park

Nibbler

  • Guest
Re: Unable to Login on Subdomain.
« Reply #1 on: April 15, 2005, 06:55:51 pm »

You need to set your cookie domain to .krgeegan.com (manually)
Logged

krkeegan

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 53
  • ahh the life...
    • Kevin's Photos
Re: Unable to Login on Subdomain.
« Reply #2 on: April 16, 2005, 03:08:37 am »

Okay I'll bite how do I change my cookie domain? I have looked in the FAQ, DOC, phpAdmin the config table, and searched the board. I am assuming that this is not a configurable setting and needs to be edited in the PHP file. Where can I find this?

Kevin
Logged
There are no stupid questions, only stupid people. -Mr. Mackey, South Park

Nibbler

  • Guest
Re: Unable to Login on Subdomain.
« Reply #3 on: April 16, 2005, 03:25:08 am »

It's part of the new bridge system, so bridge/coppermine.inc.php

Code: [Select]
setcookie( $this->client_id, $this->session_id, time() + (CPG_WEEK*2), $CONFIG['cookie_path'] );
tack the cookie domain on the end

Code: [Select]
setcookie( $this->client_id, $this->session_id, time() + (CPG_WEEK*2), $CONFIG['cookie_path'], '.krgeegan.com');
This is getting dangerously near supporting unsupported software. :)
Logged

krkeegan

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 53
  • ahh the life...
    • Kevin's Photos
Re: Unable to Login on Subdomain.
« Reply #4 on: April 16, 2005, 03:54:25 am »

Sorry don't want to get you in trouble.  ;)

But if you are insterested in further conversation it gets even stranger.

I can access everything fine at home, but it is when I am at work that I cannot login from the subdomain. I am running IE6 at home and I think the same at work, but maybe a slightly newer version of IE6. Have any idea why this might happen. At home here I can see the cookie with the subdomain in it so I think that php is handling it fine without any mods.

I'm just interested, I can fend for my self if you want to steer clear of trouble. Just seems strange that two different machines are handling cookies different than each other.

Is my IE6 at work blocking the cookie maybe because it thinks the domain doesn't match?? Strange...

Thanks though for helping someone who wandered off the reservation!
Logged
There are no stupid questions, only stupid people. -Mr. Mackey, South Park

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Unable to Login on Subdomain.
« Reply #5 on: April 16, 2005, 03:29:44 pm »

Corporate firewalls may be causing problems.  Try accessing your site from other non-work computers.  You can isolate your problem better that way.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.