For some reasons I set sessionStorage to retrieve page State of scroll... But now each time I logout the sessionStorage doesn't clear even after I tried sessionStorage.clear() or sessionStorage.removeItem(key)
please how can I unset this once the user logs out?
User Session Stored at Server side but sessionStorage is at client side script. add at "you have successfully logged out" page
echo '<script> sessionStorage.removeItem("key")</script>';
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.