# Finding the right session file with Session ID in log

**URL:** <https://www.ruby-forum.com/t/finding-the-right-session-file-with-session-id-in-log/147686>\
**Category:** Rails\
**Created:** [September 4, 2008, 9:26am UTC](https://www.ruby-forum.com/t/finding-the-right-session-file-with-session-id-in-log/147686 "2008-09-04T09:26:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [September 4, 2008, 9:26am UTC](https://www.ruby-forum.com/t/finding-the-right-session-file-with-session-id-in-log/147686/1 "2008-09-04T09:26:57Z")

</div>

Hello,

I have a dir with a lot of files like this:  
ruby\_sess.3728d5b872e30b3a  
ruby\_sess.22e35ac603d7d68f  
ruby\_sess.4e35d54a477ee9e9

And I am currently working to recover some data we’ve lost using the  
Production.log from Rails. How can I, with the Session ID from the  
log, find the right session file? Each entry in the log looks like  
this:

Processing ChamadosController#auto\_complete\_for\_chamado\_contato (for  
200.247.177.40 at 2008-07-18 09:11:23) [POST]  
Session ID: 4555232f6925596f600fe9d32b0273c5  
Parameters: {“action”=\>“auto\_complete\_for\_chamado\_contato”, (a bunch  
of parameters)}  
Completed in 0.07708 (12 reqs/sec) | Rendering: 0.00056 (0%) | DB:  
0.07584 (98%) | 200 OK [[https://itask.bludata.com.br/chamados/](https://itask.bludata.com.br/chamados/)  
auto\_complete\_for\_chamado\_contato]

Also, this log was generated in Rails 1.2.

Thanks guys.
