How do I determine if a user has cookies turned off? Some of our users
in the corporate environment have cookies turned off and are complaining
that they can’t log in. I’d like to display a message if this is the
case. How do I do this?
I’ve implemented something like this with a before_filter in my
controller. Rails send a session cookie to the client after the first
request. Check your application_controller.rb what it’s called. Most
it’s called something like “_projectname_session_id” with projectname
replaced with the name of your application.
class ApplicationController < ActionController::Base
session :session_key => ‘_projectname_session_id’
flash[:alert] = “Please enable cookies!” if
Hope this helps.