Webmastersite.net
Register Log In

Cookies not working across subdomains
Can't stay logged in across subdomains

Comments on Cookies not working across subdomains

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 20, 2008 - 8:18 AM:

Hi Paul,

Using subdomains as top level categories. I can no longer stay logged in when I enter a url like night-life.inpanamacity.com. When I go back to the index, eg, www.inpanamacity.com I'm still logged in.

In System Configuration, I have the cookie Path blank, and I have .inpanamacity.com in the Domain field.

I have cleared cookies several times and restarted the browser, without any change in the behavior.

I also tried with different browsers, IE, Firefox 2.x and Firefox 3.x, just to see if there was a difference.. no change.

Any ideas?

Thanks,

Jeff
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 20, 2008 - 8:43 AM:

A little more info

Cookies are being created as myName@night-life.inpanamacity.com or myName@real-estate.inpanamacity.com

Cookie contents start with something like:

testcookie
55
computers-and-electronics.inpanamac ity.com
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 24, 2008 - 11:14 AM:

No comments on this, Paul?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 24, 2008 - 12:10 PM:

I use the cookie path / but the rest is the same. No apparent issues.
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 24, 2008 - 3:27 PM:

No help doing the Path = '/'. Stay logged in on the home page, not logged in on subdomain pages.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 26, 2008 - 9:43 PM:

You've set a tweak in tweaks.php to force the cookie domain and path to be blank.
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Oct 04, 2008 - 10:19 AM:

Thanks Paul. I set the values in tweaks.php to "/" and ".inpanamacity.com" and it seems to be working fine now.

Dunno why I changed that..
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.