Storing additional data in the session

Folks,

I’m using the session db table to store additional data. When a user
logins I would like to store their user id in the session record and
save that.

I’m thinking of x = Session.find(session.id) and then x.save.

Is this the right way to do it?

Thanks, Joel


http://wagerlabs.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs