Advertisement

05.07.2008 at 05:28AM PDT, ID: 23382476
[x]
Attachment Details

Sharing the session variable in multiple websites

Asked by cyberwebservice in PHP Scripting Language, PHP for Windows

I have a website, which links to other related websites. I give the visitors, username and password, so that once they login to the main website, on clicking the related links, they automatically login to other websites also.

In website A, iam setting the following session variables.

$_SESSION['uname']=$username;
$_SESSION['upass']=$pwd;

I want this session variables available in the other websites also. After the user logs in, he can click the link to website B. But, the above session variables are not displayed in the website B. What could be the reason?

Any help is appreciated.
Thanks
Start Free Trial
[+][-]05.07.2008 at 05:30AM PDT, ID: 21515643

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 05:31AM PDT, ID: 21515650

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, PHP for Windows
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.07.2008 at 05:39AM PDT, ID: 21515721

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 06:31AM PDT, ID: 21516169

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 09:26PM PDT, ID: 21522339

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906