By setting the Expires property to a past time on the userData behavior, you can empty the userData storage, which is the same as that of the cookie expires. In the example below, the function fnexpireInput () sets the Expires property to a past minute, so that the data in this storage can be emptied. Try it!
.storeuserdata {behavior: URL (# default # userdata);
style>
Function FnsaveInput ()
{
VAR OPERSIST = OPERSISTFORM.OPERSISTINPUT;
OPERSIST.SETATISTRIBUTE ("SPERSIST", OPERSIST.VALUE);
OPERSIST.SAVE ("OXMLBRANCH");
}
Function fnLoadInput ()
{
VAR OPERSIST = OPERSISTFORM.OPERSISTINPUT;
OPERSIST.LOAD ("OXMLBRANCH");
IF (OPERSIST.GETATTRIBUTE ("SPERSIST")! = null)
{
OPERSIST.VALUE = OPERSIST.GETATTRIBUTE ("SPERSIST");
}
}
Function FnexpireInput ()
{
VAR OPERSIST = OPERSISTFORM.OPERSISTINPUT;
Var otimenow = new date ();
Otimenow.Setminutes (otiMenow.getminutes () - 1);
VAR SexPirationDate = Otimenow.toutCString ();
OPERSIST.EXPIRES = SexPirationDate;
OPERSIST.SAVE ("OXMLBRANCH");
OPERSIST.VALUE = ""
}
script>
hEAD>