Signals¶
- single_session.signals.change_settings(sender, setting, value, enter, **kwargs)¶
A signal handler that is attached to the setting_changed handler that will subscribe and unsubscribe the signal handlers to the proper signals.
- single_session.signals.remove_all_sessions(sender, user, request, **kwargs)¶
A signal handler attached to the user_logged_out signal that will remove all sessions associated to that user. This will run if the LOGOUT_ALL_SESSIONS setting is enabled.
- single_session.signals.remove_other_sessions(sender, user, request, **kwargs)¶
A signal handler attached to the user_logged_in signal that will create a UserSession that associates the session with the user that has logged in. If the SINGLE_USER_SESSION setting is enabled (by default), it will remove all the old sessions associated to that user.