1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cURL pass secure session to browser

Discussion in 'General Programming Chat' started by k86nl, Mar 19, 2014.

  1. k86nl

    k86nl Newbie

    Joined:
    Nov 3, 2012
    Messages:
    9
    Likes Received:
    0
    Hi Guys,

    I have a question if this is possible:
    I use cURL to login to websites and get the information i want. I add products to my basket and after i have done this, i would like to takeover the session and use it in my browser.
    Is there any way to do this?

    Thanks!

    Regards,
    K
     
  2. Lyscer

    Lyscer Junior Member

    Joined:
    Jun 29, 2012
    Messages:
    109
    Likes Received:
    46
    Occupation:
    Software Engineer
    my guess is that if this were possible, it would be that you would have to write the session cookie to the exact location that your browser writes it to. That way your script edits it, and then when you open your browser it pulls the file that you have written. From what I found, most of the browsers write their cookie session to a sqlite database, so be prepared to support that in your script. Good luck!