Reputation: 13645
I am not a hardcodre web -developer but I do rememebr being able to use the session variables in web-programming from Classic ASP to .NET. I was reading t=some article on HTML5 and they were bragging about code.Session variable as a new and great feature.
That made me wonder that session variable have been around for quite while so why does HTML5 say that code.SessionStorage the "NEW" thing that they have?
Is there anything that HTML5 doing in a different way? Is there anything that I am missing?
Upvotes: 0
Views: 245
Reputation: 944197
HTML 5 SessionStorage stores the data on the client.
It avoids having to round trip it to the server every time it changes or needs to be read (this gives performance improvements and is usable in off-line web applications).
Upvotes: 2
Reputation: 7830
Generally speaking session storage allows an easier and comfortable handling compared to cookies:
Mozilla Developer Network DOM Storage Guide says:
DOM Storage is useful because no good browser-only methods exist for persisting reasonable amounts of data for any period of time. Browser cookies have limited capacity and provide no support for organizing persisted data, and other methods (such as Flash Local Storage) require an external plugin.
Upvotes: 1
Reputation: 1
yes html5 gives the session storage... if your are typing something and suddenly PC, laptop or anything else shut down this will keep your working safe and start that procedure from where you left. :)
Upvotes: 0