How can I store sessoin data in session DB using authlogic plugin in Ruby on Rails?

I need to store objects in session DB but authlogic plugin by default store session in cookie. It does not let access session DB table. I could not figure out how to change session store in authlogic plugin.


The session store is not managed by Authlogic. You can use any session store you like. To change it to DB store, you have to add:

ActionController::Base.session_store = :active_record_store

to your config/environment.rb file. Then, you must run:

rake db:sessions:create

More info:

Need Your Help

Use eloquent instead of query in Laravel 5.2

php laravel eloquent

I made a query, but I'm not satisfied, because I wanted to do it with Eloquent!

Google Map API how to set marker for current location

javascript google-maps google-maps-api-3 geolocation

I'm learning google map API and stuck at this problem when i'm trying to add the current coordinate to an array. Here is my code: