Using the Storage APIs

Before you begin, see Storage Functions.

Setting/getting an item

<cfclientsettings enableDeviceAPI=true>

<cfclient>
 
<cfset cfclient.localstorage.setItem("key1","value1")>
<cfset keyVal = cfclient.localstorage.getItem("key1")>

</cfclient>

Removing an item

<cfclientsettings enableDeviceAPI=true>

<cfclient>

<cfset cfclient.localstorage.setItem("key1","value1")>
<cfset keyVal = #cfclient.localstorage.getItem("key1")>

<cfset cfclient.localstorage.removeItem("key1")>

</cfclient>

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online