Use the built in option.
env['rack.session.options'][:skip] = true
or the equivalent
request.session_options[:skip] = true
You can find the documentation for it here https://github.com/rack/rack/blob/master/lib/rack/session/abstract/id.rb#L213
More Related Contents:
- Rails sessions current practices
- Format a string containing Phone numbers
- How to get a random number in Ruby
- PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
- Rails 3: Get Random Record
- Rails: Access to current_user from within a model in Ruby on Rails
- Setting session timeout in Rails 3
- Devise limit one session per user at a time
- Rails 3, has_one / has_many with lambda condition
- Rails update_attributes without save?
- Pass a variable into a partial, rails 3?
- Using send_file to download a file from Amazon S3?
- Can we call a Controller’s method from a view (as we call from helper ideally)?
- How to get a Date from date_select or select_date in Rails?
- How to match accented characters with a regex?
- f.error_messages in Rails 3.0
- How to change the default path of view files in a Rails 3 controller?
- Why use “self” to access ActiveRecord/Rails model properties?
- Convert UTC to local time in Rails 3
- What does do in rails erb?
- Storing Objects in a Session in Rails
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Rails 3 – Speed up Console Loading Time
- Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?
- Is there a “phpmyadmin” for Ruby on Rails? [closed]
- Rails devise: user_signed_in? not working
- Customizing Devise error messages in Rails 3?
- Rails 2 to Rails 3 : using link_to instead of link_to_remote (including remote and update)
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Why should we avoid using class variables @@ in rails?