I have a problem logging onto a page and then using it with cURL. I login, get PHPSESSID and cookie, and then try to do an action but page returns 'not logged in'. But if I manually log in and copy/paste that PHPSESSID into curl cookies .txt file, everything works fine. So why doesn't it work with PHPSESSID from cURL?
EDIT: It also works when I copy PHPSESSID generated by cURL to browser PHPSESSID, very strange.
EDIT 2: Found a problem, there was another logged in check not visible before.