So I was under the impression that it's normal practice to use an html form for your login page and use the action attribute to send your request to the server. But I'm running into trouble with this approach. Specifically, if the login is successful, I don't know how to get access to a session ID on the client side. I would like to receive a response from the server in some way so that I can save the response data into session storage, but I don't know of any way to access the response.
What's the standard for designing a login page? What am I missing? Is it not standard to use an html form for this? And if so, what do I do about sessions?
Thanks