# Session data not saved in the session file although file created (using :p\_store)

**URL:** <https://www.ruby-forum.com/t/session-data-not-saved-in-the-session-file-although-file-created-using-p-store/148309>\
**Category:** Rails\
**Created:** [September 11, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/session-data-not-saved-in-the-session-file-although-file-created-using-p-store/148309 "2008-09-11T17:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de0a6/32.png) [@gabriel](https://www.ruby-forum.com/u/gabriel)\
**Post date:** [September 11, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/session-data-not-saved-in-the-session-file-although-file-created-using-p-store/148309/1 "2008-09-11T17:10:30Z")

</div>

Hi all,

I am new to Rails. I want to test some things with sessions. But I  
simply cannot make them work. I am using this in the environment.rb  
file:

config.action\_controller.session\_store = :p\_store  
config.action\_controller.session = {  
:tmpdir =\> “#{RAILS\_ROOT}/tmp/sessions/”,  
:session\_key =\> ‘\_tests\_session’,  
:secret =\>  
‘f23e19a920da3ccb0a128f24d97a85e36618b7e6dc920167febe16f24ca89462d5bf83598d87d2d842c1fd273bb7df98b23ee6291c8fe6bfe8fdcf973929b645’  
}

The file “ruby\_sess.d38fcbeda549de99” is created in my
