Cookies

Discussion in 'Customization & add-ons' started by tannerb32, Dec 3, 2010.

  1. tannerb32

    tannerb32 New Member

    Joined:
    Dec 3, 2010
    Messages:
    2
    Edit: Solved.

    Rephrase: I am writing a desktop app in Java for a client that is running aMember on his webserver. He is also running php_include and new_rewrite. My problem is that I can successfully send a login to amember/member.php (POST amember/member.php?username?blah etc) along with my PHPSESSID cookie, but the response I get doesn't contain the amember_nr cookie for php_include. Without that cookie I've determined I can't access the php script I need start to download a file. I can't find where amember_nr is set either. Hoping for some input by a seasoned vet of amember here. I've even tried programmatically recreating a raw GET and POST with data taken from my browser when I log in, yet member.php still isn't sending me the cookie

    //end of edit

    I am writing a desktop based login script for aMember for a client and am having some difficulties. I can login just fine with the script, but if I try to do any GET's or POST's from my script on elements on member.php after it is remotely logged in, I'm getting sent back to the login page because of the htaccess' I'm assuming. He is using (by the looks of it, I'm completely new to aMember) new_rewrite, mod_rewrite and php_include. I've recreated a successful POST login, with a complete header I captured from an actual login through my browser, yet the subsequent GET to /amember/member.php is still only returning my PHPSESSID, not the amember_nr, _amember_ru, or _amember_rp cookies which I believe I need. As far as I can tell, those three cookies are being set by member.php, or another script member.php is calling after I POST my login credentials and then after the GET on member.php. Editing the php is not out of the question right now. A point in the right direction would be great here!
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Do you have new_rewrite plugin enabled?
  3. tannerb32

    tannerb32 New Member

    Joined:
    Dec 3, 2010
    Messages:
    2
    Yes it is. I solved this by using a different API; however, I would still like to solve this problem for my own interest because the API I have used is fairly slow.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Contact me in helpdesk and provide instructions how to recreate this, I will check what can be wrong and help.

Share This Page