# Session timeout

**URL:** <https://www.ruby-forum.com/t/session-timeout/91916>\
**Category:** Rails\
**Created:** [April 13, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/session-timeout/91916 "2007-04-13T12:02:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [April 13, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/session-timeout/91916/1 "2007-04-13T12:02:54Z")

</div>

hi friends,

what is the default session timeout in ruby?

i m creating session variables by session[:var\_name]=some value

but when i m trying to retrive value from session variables, sometimes  
it gives me null .  
but when i refresh the page, i again gives me value of session variable.  
so whats the problem?  
i m not getting.  
please help me out someone.

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [April 13, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/session-timeout/91916/2 "2007-04-13T14:46:28Z")

</div>

Hi John,

john wrote:

> what is the default session timeout in ruby?

AFAIK, there isn’t one.

> i m creating session variables by session[:var\_name]=some value
> 
> but when i m trying to retrive value from session variables,  
> sometimes it gives me null . but when i refresh the page,  
> i again gives me value of session variable.  
> so whats the problem?

Not sure what’s causing the problem, but I don’t think it’s a session  
timeout problem. You’ll need to post some code that demonstrates the  
problem for us to help.

Best regards,  
Bill
