Save the input parameters to the session attribute (SessionAttribute) to the current session.
Syntax
void
saveSessionAttribute
(
String
attribKey
,
String
attribValue
,
boolean
encrypt
) throws DBException, CryptoException
Parameters
-
attribKey –
session attribute key
-
attribValue –
session attribute value
-
encrypt –
True/False whether encryption is needed or not, respectively.
Exceptions
-
DBException –
Exception while saving the session variable from database
-
CryptoException –
Exception during encryption.
Usage
Encrypt the value prior to saving, if needed (encrypt = true).
Also see
saveSessionAttribute(String, String)
method, if encryption is not needed.