I\'m a little bit confused, I\'ve read about a lot about my problem but without finding an answer. I have to login into a website and fetch some HTML from a page reachable o
The sessions are created on the server. Once you hit the url (in this case ), your server should validate the credentials and then create the session. You can only use javascript to manage that session, probably using cookies, and not create a session.