自动在ajax调用中使用的本地存储中的user_data

I am trying to figure out how a particular ecommerce website works. When I type the url as

"www.example.com/api/followstore?store=abc" 

the result is:

(when user is logged in)

{"error":"","success":true,"followedstoreId":1042,"data":[1122,566,1042]}

(when user is not logged in)

{"error":"not logged in","success":false}

So it is basically doing a ajax call with store="abc".

My question is from where is it getting the user_data(information that user is logged in or not and lot of other user specific data) which is saved in the local storage(not as cookie or session storage) since I am not passing it in URI.

As per my knowledge any variable stored in local storage cannot be accessed in php directly and need to be 'post' or 'get'.

So how is this particular URI working.