简体   繁体   中英

Local Storage to load cookie

Is there anyway I can use local storage to load a cookie so a user won't have to login ? Someone please help, I'm lost and confused on the capabilities of local storage. Say i have a cookie named lol_SessionID, how do I load that into a webpage with local storage?!

In PHP to load the value from a cookie is $cookie = $_COOKIE['cookieName']; but I think I've misunderstood the question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM