SessionStorage: Difference between revisions
Jump to navigation
Jump to search
Created page with "SESSIONSTORAGE(''string'' | ''variable'') '''Description''' SESSIONSTORAGE allows you to save string data so it is available while you run the program. An entry can be creat..." |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
SessionStorage(''string'' | ''variable'') | |||
== Description == | |||
SessionStorge allows you to save string data so it is available while you run the program. An entry can be created by assigning to SessionStorage.''variableName'', where ''variableName'' is chosen by you. Data is retrieved the same way. A program is allowed to store at least 5 megabytes of data in SessionStorage. The data is wiped out when the program is exited. | |||
== Example == | |||
<pre> | <pre> | ||
Rem SessionStorage Save Example | |||
SessionStorage.data="This is Data." | SessionStorage.data="This is Data." | ||
(run and exit program) | (run and exit program) | ||
Rem SessionStorage Retrieve Example | |||
Print SessionStorage.data | Print SessionStorage.data | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[localstorage| | [[localstorage|LocalStorage]], [[serverStorage|serverStorage]] | ||
[[Category:Language Reference]] | |||
[[Category:Miscellaneous]] |
Latest revision as of 16:09, 6 November 2014
SessionStorage(string | variable)
Description
SessionStorge allows you to save string data so it is available while you run the program. An entry can be created by assigning to SessionStorage.variableName, where variableName is chosen by you. Data is retrieved the same way. A program is allowed to store at least 5 megabytes of data in SessionStorage. The data is wiped out when the program is exited.
Example
Rem SessionStorage Save Example SessionStorage.data="This is Data." (run and exit program) Rem SessionStorage Retrieve Example Print SessionStorage.data
Output
undefined