access cookies from Jquery always return undefined

I am trying to access Application cookies with jquery on my Asp.Net MVC App.

Screenshot of Cookie and Value I am trying to access Cookie with $.cookie('ASP.NET_SessionId'); but it always returns "undefined"

How can I access Cookie values

enter image description here

Upvotes: 2

Views: 168

Answers (1)

Jaromanda X
Jaromanda X

Reputation: 1

HTTP only cookies can not be accessed in JavaScript

And this is a HTTP only cookie

Upvotes: 3

Related Questions