Jump to content

Session Drops From www. to no www.


SithLordKyle

Recommended Posts

I have a login function for my site and have been having session problems lately.  I finally narrowed it down and realized that some links are http://mysite.com and some are http://www.mysite.com.  When I login at http://mysite.com then move to any folder where the address is http://www.mysite.com, the session gets dropped and I'm not logged in.  However, if I take out the www, the session is there.

 

Is there any way to have it encompass both or prevent this from happening?  Or should I go through and re-code all the pages so the links point to http://www.mysite.com or http://mysite.com exclusively?

Link to comment
https://forums.phpfreaks.com/topic/119754-session-drops-from-www-to-no-www/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.