Unfortunately it does not work for me, though I tried described solution. Sometimes I succeed to login after several tries, bus session is gone immediately when I send the next GET/POST being inside already.
I faced with similar problem on different PHP based sites and the problem related to the proxy server through my computer accesses to the internet. I googled a problem and found some seems related posts.
This link is one of them