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 moreCan we use session in ASPX page?
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 more