Developer

saveSessionAttribute(String, String, boolean) method

Save the input parameters to the session attribute (SessionAttribute) to the current session.

Syntax
Syntax
public 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.

Remarks

Encrypt the value prior to saving, if needed (encrypt = true).

Also see saveSessionAttribute(String, String) method, if encryption is not needed.