# Restful plugin with session table

**URL:** <https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752>\
**Category:** Rails\
**Created:** [February 2, 2010, 10:30am UTC](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752 "2010-02-02T10:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![preksha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@preksha](https://www.ruby-forum.com/u/preksha)\
**Post date:** [February 2, 2010, 10:30am UTC](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752/1 "2010-02-02T10:30:52Z")

</div>

hi,

I want to use this plugin with sessions table with configuration in  
environment.rb

config.action\_controller.session\_store = :active\_record\_store

and  
rake db:sessions:create  
rake db:migrate

but strange its not allowing me to login. and if I remove configuration  
from environment.rb its working  
any idea ??  
I want to use sessions with sessions table.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![preksha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@preksha](https://www.ruby-forum.com/u/preksha)\
**Post date:** [February 3, 2010, 5:10am UTC](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752/2 "2010-02-03T05:10:08Z")

</div>

Milan D. wrote:

> If you go to console and try to create session objects what happens?
> 
> Milan D.  
> [http://www.milandobrota.com](http://www.milandobrota.com)

thanks for your reply…session’s object is cretaed and there is a  
database entry in session table…

---

<div class="post-metadata">

**Author:** ![preksha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@preksha](https://www.ruby-forum.com/u/preksha)\
**Post date:** [February 2, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752/3 "2010-02-02T14:11:07Z")

</div>

If you go to console and try to create session objects what happens?

Milan D.  
[http://www.milandobrota.com](http://www.milandobrota.com)
