Afficher un message
Vieux 18/09/2007, 20h11   #1
Stut
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] read the main domain in sub domain

Sanjeev N wrote:
> Assume, I have www.domain.com <http://www.domain.com/> in which I wrote the
> functionality for user authentication and his profile related functionality.
>
> Now, when user logs in using http://www.domain.com/users/login.php then
> after his successful login a session as well as a is getting created.
>
> This will creates a called my123
>
> Now I have my subdomain as http://sub.domain.com/index.php . here at the top
> I am checking whether the user is logged in or not, for that I have to check
> whether the is created or not..
>
> Here my problem is that, I am not getting the idea about, how to access or
> read the of http://www.domain.com <http://www.domain.com/> from
> http://sub.domain.com/. can anyone please suggest me how to achieve this.


Set the $domain parameter of set to '.domain.com'.

-Stut

--
http://stut.net/
  Réponse avec citation
 
Page generated in 0,05084 seconds with 9 queries