# Restful\_Authentication and DB Sessions

**URL:** <https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779>\
**Category:** Rails\
**Created:** [September 4, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779 "2007-09-04T21:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmerydith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Post date:** [September 4, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779/1 "2007-09-04T21:46:35Z")

</div>

We’re using the Restful Authentication plugin  
([http://agilewebdevelopment.com/plugins/restful\_authentication](http://agilewebdevelopment.com/plugins/restful_authentication)).

So far it works fine but then I noticed that sessions are not being  
stored to the db. When I looked at the sessions table I noticed that is  
does not have fields like “session\_id” and “data” which are created when  
running rake db:sessions:create. Instead what I see is a lot of fields  
in sessions that are duplicates of the user table like login, email,  
salt, password.

I’m not really understanding the purpose of the Sessions table for  
Restful\_Authentication as well why it isn’t actually storing sessions in  
the db.

---

<div class="post-metadata">

**Author:** ![wmerydith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Post date:** [September 4, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779/2 "2007-09-04T22:58:36Z")

</div>

On 9/4/07, Will M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m not really understanding the purpose of the Sessions table for  
> Restful\_Authentication as well why it isn’t actually storing sessions in  
> the db.

The plugin doesn’t modify how sessions work. It sounds like you  
specified Session as the user model.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
