php session file reader/writer in ruby