Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js save session

var user = {'name':'John'};
sessionStorage.setItem('user', JSON.stringify(user));
var obj = JSON.parse(sessionStorage.user);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #save #session
ADD COMMENT
Topic
Name
8+9 =