php session file reader/writer on Rails