I'm trying to make a PHP cURL login script so that my PHP script could get data from the site only available for logged users.
But there seems to be some problem in my script. It throws me back to the login page with some changes in the url. I noticed that it does the exactly same with my browser if I disable cookies so I assume that the problem is with the cookies.
The login page sends 2 cookies in the referer. Both expire at end of session.