When user is authenticated, the server store "UserName" in session. Then throug ajax, the user request another page which require authentication. How the ajax request tell the server that one has been authenticated, or how the server know it's from 'UserName"?
Should ajax set SessionId in Header or Cookie ? How to get and set the SessionId ?
I learned the browser could send back to server a sessionid, but I don't know how this should be done in JS.
I'm using JQuery, C#.