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.
views:
12answers:
1
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
2010-07-02 11:44:19
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
2010-07-03 20:12:41