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
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/a004de17-99f1-45ea-a691-92e63b8fc473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.