Hi guys,
I have found a serious issue and I couldn’t figure out the reason for it. Below I will explain my problem.
I have a system where people can sign up and create their own web site. I have allowed people to have dynamic sub domains so they can access their web sites using their own sub domain name under my domain.
Ex: Person name 'john' can create a web site using my system and have a sub domain as john.domain.com.
Hope you’ll understood the overall view of the system. For explanation sake think the domain name as test.com.
I have a login box in test.com. When ever people login through it, I register all their details in a session.
After logged in, there is a place that I will list all the personal sites that they have created
(for the management purpose).
That’s where the issue comes in. When they click on the preview site link they will take in to their site (which is a sub domain) but all the session variables gets empty.
I’m not sure but I think the problem for this is I’m registering all the session variables in my main domain (test.com) and once someone tries to access a sub domain those sessions won’t be available for them. Is that the reason?
What can I do to get the access to the session values which I registered in my main domain?
Thanks in advance,
Regards,
Niroshan