loging out of site if navigatinhg to other pages in ruby on rails app

5 views
Skip to first unread message

Sailatha Kashamoni

unread,
Feb 18, 2015, 8:45:10 AM2/18/15
to rubyonra...@googlegroups.com
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
  # POST /resource/sign_in
  def create    
    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
  end  
end
Reply all
Reply to author
Forward
0 new messages