#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2008
    Posts
    225
    Rep Power
    8

    Setting a cookie for site2.com from site.com with curl


    Hey there,
    Is it possible to set a browser cookie with curl from site.com for site2.com, trying to create a remote login.

    im trying to set a browser cookie within Wordpress's autologin function within an open curl session

    PHP Code:
    //login
    wp_set_auth_cookie($user_id);
    do_action('wp_login'$Tname); 
    Thanks!!!
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7170
    No

    Comments on this post

    • Toxinhead agrees : hahaha
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2008
    Posts
    225
    Rep Power
    8
    Nice one
  6. #4
  7. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6352
    It wasn't a joke, it was the only answer.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2008
    Posts
    225
    Rep Power
    8
    Yeah unfortunately, my reasons for humor is off this thread http://forums.devshed.com/php-develo...ve-941873.html

IMN logo majestic logo threadwatch logo seochat tools logo