Remote Sessions...

Discussion in 'PHP' started by THT, Jan 2, 2006.

  1. #1
    Heres what i need to do:

    1) Send a request to a Login Page on a remote server
    (fine no problem :) )

    2) IN THE SAME SESSION - request another page on that server


    In MFC id use CInternetSession so that effectively this was the same session on the remote server.

    Is there a way to do this in PHP?
     
    THT, Jan 2, 2006 IP
  2. Voyager2K

    Voyager2K Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what mean "Send a request to a Login Page on a remote server" - user contact with Server 1, Server 1 send request to Server 2(Login Page) ?

    If none Server 2, what the problem ? Open session ( session_start()) at all pages what you need.
     
    Voyager2K, Jan 2, 2006 IP
  3. jordie

    jordie Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use php to grab the session ID from the second server. Then store that sessionID in a database on the localserver and then send it with any further requests to the remote server.

    How are you sending a request to the remote server, Via HTTP POST?
     
    jordie, Jan 2, 2006 IP
  4. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if it helps, bith requests are too the same server...
     
    THT, Jan 3, 2006 IP
  5. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    snoopy does what i want....
     
    THT, Jan 3, 2006 IP