SessionStorage: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
SESSIONSTORAGE(''string'' | ''variable'')
SessionStorage(''string'' | ''variable'')


'''Description'''
== Description ==


SESSIONSTORAGE 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.
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'''
== Example ==


<pre>
<pre>
REM SESSIONSTORAGE Save Example
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
Rem SessionStorage Retrieve Example
Print SessionStorage.data
Print SessionStorage.data
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 21: Line 21:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[localstorage|LOCALSTORAGE]]
[[localstorage|LOCALSTORAGE]]
[[Category:Language Reference]]

Revision as of 03:10, 17 August 2012

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

Related Items

LOCALSTORAGE