I have an issue when i am loging in to site after clicking on other menu tabs it is automatically loging out and if i wait for few minutes refresh and then login tabs are working fine.If i logout and login again and i click on other tabs geting loged out. I am not understanding where i need to check the code.
class SessionsController < Devise::SessionsController
respond_to do |format| format.json do self.resource = warden.authenticate!(auth_options) sign_in(resource_name, resource) return render :json => resource end format.html do super end end