"Remember me" checkbox during user log in is a common practice currently does not supported by implementations of ServerSideSessionBackend / ClientSideSessionBackend classes.
def set_session(self, value: dict[str, Any] | DataContainerType | EmptyType) -> None:
"""Set the session in the connection's ``Scope``.
If the :class:`SessionMiddleware <.middleware.session.base.SessionMiddleware>` is enabled, the session will be added
to the response as a cookie header.
Args:
value: Dictionary or pydantic model instance for the session data.
Returns:
None
"""
self.scope["session"] = value
I think the best way would be to add ability to set specific cookie params in 'set_session' method, they would be used over default ones specified in SessionAuth instance. Then add support for it for ServerSideSessionBackend / ClientSideSessionBackend.
Need to be careful about backward compability but i think there should not be much of a problem.
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too