Session.get

Session.get(key, default=None)

Return the value for key if key is in the session, else return default or None.

Parameters:
keystr

The identifier of the data value.

defaultAny, optional

A default value.

Returns:
Any

The session data value corresponding to the key/identifier, or the default value if no entry with the given key/identifier exists.