node.js - Using SessionStorage in javascript to store user context information -
can use sessionstorage or localstorage of html5 store user context details shared across different pages?
consider scenario, don't have server side storage access @ first page, , user context needs passed in later in header,but before in whi want store user name , few other context details shared other page. recommended use sessionstorage, cookies or there other alternative ?
i'd suggest usage of jwt , yes, can store in sessionstorage, have careful of cross-site scripting attacks. can take further read here.
Comments
Post a Comment