In theory, Devise should behave as you say. The time out code is just
invoked if you try to access the current user or require
authentication. Therefore, a simple call to current_user may trigger
the timeout. Maybe you shuold be using something like user_signed_in?
before accessing the current_user directly.