pelargir / auto-session-timeout

Provides automatic session timeout in a Rails application.
MIT License
126 stars 63 forks source link

Inactivity is not detected #30

Closed jpriollaud closed 4 years ago

jpriollaud commented 4 years ago

I'm getting the active heartbeat every 1 minute.

def auto_timeout 2.minutes end

I never get a timeout. Where should I look for clues?

I tried both: def timeout signout_user # my existing method end def timeout render_session_timeout end

Rails 5.0.7

pelargir commented 4 years ago

Check your browser's JavaScript console for errors. It sounds like the JS may not be doing the right thing when the timeout occurs. Also, your Rails log could be helpful. Do you see a timeout path request being made and it's failing, or is the Rails server never receiving a timeout request to begin with?