views:

12

answers:

1

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.

A: 

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:

Vlad Zloteanu
Thanks Vlad for your response. Actually I have tried whatever you said 2-3 times before I asking the help but it did not really work tomy app. session data is not stored in session table while I am using authlogic plugin [in my case].
Amitku