In addition to the after_set_user hook, the Warden::Manager also supports a before_logout hook.
This commit integrates with that hook to call ahoy.reset so that subsequent visits will be anonymous, and subsequent authenticated sessions will create a new Visit.
In addition to the
after_set_user
hook, theWarden::Manager
also supports a before_logout hook.This commit integrates with that hook to call
ahoy.reset
so that subsequent visits will be anonymous, and subsequent authenticated sessions will create a new Visit.