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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -