Can a SESSION work on domain and it's subdomain?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Can a SESSION work on domain and it's subdomain?

Post by simonmlewis »

We are going live with a mobile subdomain, where users have to be logged in to use it. However, we are giving them a "View Desktop Version", but that goes from the m.site.com to www.site.com... and the session is not seen.

Can a session be set to work across all its domains??
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Can a SESSION work on domain and it's subdomain?

Post by Celauran »

Post Reply