PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Re: [PHP] read the main domain in sub domain
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: [PHP] read the main domain in sub domain

Réponse
 
LinkBack Outils de la discussion
Vieux 18/09/2007, 20h11   #1 (permalink)
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
Vieux 18/09/2007, 20h13   #2 (permalink)
Sanjeev N
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] read the main domain in sub domain

I did it. Still I am not able to access it.

Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan
-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]
Sent: Wednesday, September 19, 2007 12:41 AM
To: Sanjeev N
Cc: php-general@lists.php.net
Subject: 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
Vieux 18/09/2007, 20h15   #3 (permalink)
Stut
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] read the main domain in sub domain

Sanjeev N wrote:
> I did it. Still I am not able to access it.


You'll probably need to delete the existing from your browser and
get it set again.

-Stut

> -----Original Message-----
> From: Stut [mailto:stuttle@gmail.com]
> Sent: Wednesday, September 19, 2007 12:41 AM
> To: Sanjeev N
> Cc: php-general@lists.php.net
> Subject: 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
>

  Réponse avec citation
Vieux 18/09/2007, 20h24   #4 (permalink)
Sanjeev N
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] read the main domain in sub domain

Hey Stut, Thanks..
Now its working fine. Now I am able to access the value. Actually problem
was in main domain the path was wrong. It was showing /user/ . I set
it to /

Thanks Stut.

Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan

-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]
Sent: Wednesday, September 19, 2007 12:46 AM
To: Sanjeev N
Cc: php-general@lists.php.net
Subject: Re: [php] read the main domain in sub domain

Sanjeev N wrote:
> I did it. Still I am not able to access it.


You'll probably need to delete the existing from your browser and
get it set again.

-Stut

> -----Original Message-----
> From: Stut [mailto:stuttle@gmail.com]
> Sent: Wednesday, September 19, 2007 12:41 AM
> To: Sanjeev N
> Cc: php-general@lists.php.net
> Subject: 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
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h21.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11240 seconds with 12 queries