homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Create Session with external website without using browser
Is this possible
breham




msg:3325979
 8:49 am on Apr 30, 2007 (gmt 0)

Hi,

I'm trying to do this:

1. User browses my site
2. User clicks on a link which completes a task on external website (such as logs in) called "Site B" - this bit needs to be invisible to the user
3. User carries on browsing my site.
4. When user has finished on my site they click on a link that takes them to Site B
5. When they arrive at site B they are already logged in because I did that in step 2.

I have been doing step 2 with an invisible IFRAME but some sites have not worked correctly.

Therefore what other methods can I use? I have looked fsockopen and curl but this doesn't seem to work because the Session or cookie is created on my server not the users browser and therefore when they get to site b the action required hasn't been completed.

Any ideas or suggestions greatfully received!

Brett

 

breham




msg:3327244
 11:11 am on May 1, 2007 (gmt 0)

anyone?!?

coopster




msg:3329838
 3:09 pm on May 3, 2007 (gmt 0)

Maintaining session state between two separate domains is not an easy task. If they are both on the same domain (subdomains) your life would be much easier because you can manage state via the cookie itself.

If they are on different domains entirely, you are looking into what is commonly referred to as SSO or single sign-on. It is a large undertaking. Here are a couple of threads that might give you some other ideas as to how you might proceed.

domain spanning sessions [webmasterworld.com]
Sharing Session across domains [webmasterworld.com]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved