Home > Contents > Index >
ICS.SetSSVar
Sets the value of a session variable.
The value of a session variable exists for the duration of the session, unless it is explicitly deleted using
RemoveSSVar
. This method has two variants:
- SetSSVar (Variant 1) sets the value of a session variable where the value of the variable is a string.
- SetSSVar (Variant 2) sets the value of a session variable where the value of the variable is an integer.
ICS.SetSSVar
Sets the value of a session variable.
Syntax
public void SetSSVar(String name, String value)Parameters
name
- The name of the session variable to set.
value
- The value to set the session variable to.
Description
The
SetSSVar
method sets the value of a session variable. The value of a session variable exists for the duration of the session, unless it is explicitly deleted usingRemoveSSVar
.
Example
The following fragment creates a session variable named
FavoriteColor
and sets it tored
:
ics.SetSSVar("FavoriteColor", "red");See Also
GetSSVar , GetSSVars , RemoveSSVar
ICS.SetSSVar
Sets the value of a session variable.
Syntax
public void SetSSVar(String name, int value)Parameters
name
- The name of the session variable to set.
value
- The value to set the session variable to.
Description
The
SetSSVar
method sets the value of a session variable. The value of a session variable exists for the duration of the session, unless it is explicitly deleted usingRemoveSSVar
.
Example
The following fragment creates a session variable named
FavoriteColor
and sets it tored
:
ics.SetSSVar("FavoriteColor", "red");See Also
GetSSVar , GetSSVars , RemoveSSVar
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.