Sets the value of a session variable.
PSSessionClass object
psSession.SetValue( propname, value )
| Argument | Description | 
|---|---|
| propname | The name of a session variable | 
| value | The new value for the session variable | 
String. Returns the new value for the session variable.
At runtime, SetValue has the following behavior:
| Application server | Runtime behavior | 
|---|---|
| ASP | Assigns a value to a user-defined property of the Session object | 
| JSP | Assigns a value to a user-defined property of the session object | 
The following example sets the value of the UserID and Password session variables:
psSession.SetValue("UserID", userid);
psSession.SetValue("Password", password);