# Session data and 304 Not Modified HTTP code

**URL:** <https://www.ruby-forum.com/t/session-data-and-304-not-modified-http-code/163430>\
**Category:** Rails\
**Created:** [March 20, 2009, 10:32am UTC](https://www.ruby-forum.com/t/session-data-and-304-not-modified-http-code/163430 "2009-03-20T10:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Kize](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@Jeff\_Kize](https://www.ruby-forum.com/u/Jeff_Kize)\
**Post date:** [March 20, 2009, 10:32am UTC](https://www.ruby-forum.com/t/session-data-and-304-not-modified-http-code/163430/1 "2009-03-20T10:32:05Z")

</div>

I am storing an id in the session data. An action causes the id to  
change, however, the rendered action has not changed. The server  
returns a 304 Not Modified code and doesn’t return the cookie. With  
Rails 2.2.2, I believe it is using the CookieStore for sessions, so I  
expect the cookie to update.

When I hit the site again, the old session data is used. Is there a  
way to use the new session data?

Thanks,  
Jeff.
