issue with setting cookies (General questions)

by Klinzter @, (4271 days ago)

I have a little issue with wodHttp with Autoredirect set to true.

I have this POST to site1.com/login.php with username and password
on success I get a header with

Set-Cookies: user=blah
Set-Cookies: logged=yes
Location: site2.com/connect.php

then I am redirected to site2.com/connect.php
the header contains this

Set-Cookies: user=no
Set-Cookies: logged=no
Location: site1.com/home.php

then I am redirected back to site1.com/home.php
and it says that im not logged in, so when I check cookies I have
user=no; logged=no

what can I do because site2 its messing up the cookies

locked

Re: issue with setting cookies

by woddrazen @, (4271 days ago) @ Klinzter

Hi Klinzter,


Did you try to manually send cookies for second request?

Let us know how it goes.


Regards,
Drazen

locked

Re: issue with setting cookies

by Klinzter @, (4271 days ago) @ woddrazen

it works in the browser because a browser tracks cookies correctly by domain and wodHttp tracks cookies incorrectly by merging all received cookies

locked