# Sessions in RailsSpace

**URL:** <https://www.ruby-forum.com/t/sessions-in-railsspace/175080>\
**Category:** Rails\
**Created:** [September 7, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/sessions-in-railsspace/175080 "2009-09-07T14:22:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [September 7, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/sessions-in-railsspace/175080/1 "2009-09-07T14:22:49Z")

</div>

Hi Everyone,

I am now at the stage of logging a user in and monitoring the  
session.

I have a new table, called sessions.

Now there are a couple of areas that get amended before I see the  
error:

1 – in user\_controller – in the register action, ther is now a session  
reference:

Session[:user] = @user\_id

2 – in Config/environments, there is a line un-commented out to do  
with the Active record

3 – a session param is added to view the session output upon clicking  
register.

My problem is, that each time I click register I get an error talking  
about the invalid authenticity token on register for the user  
controller.

Can anyone help?

---

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [September 9, 2009, 3:04am UTC](https://www.ruby-forum.com/t/sessions-in-railsspace/175080/2 "2009-09-09T03:04:21Z")

</div>

Session information can sometimes be saved in your browser longer than  
you’ld like if you are developing. You might try dropping any cookies  
associated with “localhost”, assuming you are pointing your browser at  
localhost:3000 to hit your server.

On Sep 7, 8:20 am, RubyonRails\_newbie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
