Jump to content
evolution.x

Cookie Conflict ?

Recommended Posts

I had 1 main website (www.mysite.com) running 1.4.9.0.

 

I needed to duplicate the site and run it independently from a sub domain (www.sub.mysite.com)

 

I changed all of the variables in settings.inc.php, yes i changed the define COOKIE_KEY & COOKIE_IV in the duplicate.

 

I have both sites running fine almost 90% of the time but here is my problem:

 

If a customer visits my main site (www.mysite.com) it places a cookie on the computer with a unique "Cookie Name", then if the same customer visits my sub domain (www.sub.mysite.com) and tries to log in, they can't?? I have looked at the cookies the sites place on my computer and they both have the same "Cookie Name" this is the only thing I think is conflicting. When they try to log in it just clears the login boxes and refreshes the page.

 

If I remove the cookie which (www.mysite.com) placed on my computer and try to login (www.sub.mysite.com) again it works fine?

 

Like I said I have different settings in settings.inc.php but even if I change these again I always get 2 cookies with the same name??

 

How do I change the generated cookie name of (www.sub.mysite.com)?? I have looked in "classes/cookie.php" and found "$this->_name = md5($name);" but i assume this is using the COOKIE_KEY from setting.inc.php for the md5??

 

I have changed COOKIE_KEY setting several times but the cookie name never changes??

Share this post


Link to post
Share on other sites

this is a duplicate post...please don't do that...though it's a better idea to create a new post rather than digging up old posts...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More