setUserSession
and replaceUserSession
Lack Error Handling for Session Storage Failures
#334
Labels
enhancement
New feature or request
The
setUserSession
andreplaceUserSession
methods return aUserSession
object that reflects the intended session data, even when the data fails to persist due to storage limits 4096-byte.This behavior creates a false assumption that the data was saved successfully.
For example:
Expected Behavior
If session persistence fails, the methods should throw an error or return a status indicating failure.
The returned UserSession object should only reflect successfully persisted data.
The text was updated successfully, but these errors were encountered: