You can’t, JavasSript is used for client side scripting on the browser , and cannot access a Session object from a server. JavaScript runs in the clients browser, your Session object is exposed by the server.
Read moreHow can you manage sessions in Web API?
Now let’s see an example of Session Management in the Web API.
Read moreHow can you manage sessions in Web API?
Now let’s see an example of Session Management in the Web API.
Read moreWhat is session in ASPX?
In ASP.NET session is a state that is used to store and retrieve values of a user . It helps to identify requests from the same browser during a time period (session). It is used to store value for the particular time session.
Read more