0
Wtf with html5?
i spend 3-4 hour in a day for learning this, and i still got nothing. someone please be my teacher 😅😣
2 Antworten
+ 2
Local and session storage handles paired text key/value... but you can store any type of content you want by encoding them in a text format ( as JSON ).
Important things about storage:
- new in html5
- unique access per domain ( as for cookies )
- size limit greater than cookies, but can be navigator/user dependant ( about 5-10MB per origin instead 2KB for cookies )
- contrary to cookies, data cannot be shared/access with/by server through http headers ( but obviously, still possible to use Ajax to communicate )
- data stored in navigator, means one set of value by navigator access ( each navigator on each device )
And to spend more time, follow the links in this post: https://www.sololearn.com/Discuss/176722/how-can-i-have-the-javascript-input-data-into-sessionstorage
0
someone who want 😂