# Long waiting time for first page due to session\[:user\]

**URL:** <https://www.ruby-forum.com/t/long-waiting-time-for-first-page-due-to-session-user/100269>\
**Category:** Rails\
**Created:** [July 28, 2006, 2:08am UTC](https://www.ruby-forum.com/t/long-waiting-time-for-first-page-due-to-session-user/100269 "2006-07-28T02:08:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heri\_rakotomalala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b77776/32.png) [@heri\_rakotomalala](https://www.ruby-forum.com/u/heri_rakotomalala)\
**Post date:** [July 28, 2006, 2:08am UTC](https://www.ruby-forum.com/t/long-waiting-time-for-first-page-due-to-session-user/100269/1 "2006-07-28T02:08:04Z")

</div>

hi everyone  
i am developing [http://sprinj.com](http://sprinj.com)  
it uses a login system, quite simple, really, similar to loginEngine

the problem is that takes way too much time to access the first page.  
when i  
desactive the login system, there is very noticeable difference (about 2  
to  
3 seconds), and people who visited the website complained about this.

is there something i can do to speed the sessions checkups ?

sessions are stored in tmp/sessions [someone hinted me at memcached  
store  
but i have not been able to make it run on my server, and i am not sure  
if  
it will speed things up too.]

thanks everyone for the help

---

<div class="post-metadata">

**Author:** ![heri\_rakotomalala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b77776/32.png) [@heri\_rakotomalala](https://www.ruby-forum.com/u/heri_rakotomalala)\
**Post date:** [July 28, 2006, 8:07pm UTC](https://www.ruby-forum.com/t/long-waiting-time-for-first-page-due-to-session-user/100269/2 "2006-07-28T20:07:39Z")

</div>

On 7/27/06, heri rakotomalala [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> sessions are stored in tmp/sessions [someone hinted me at memcached store  
> but i have not been able to make it run on my server, and i am not sure if  
> it will speed things up too.]

Sessions are retrieved on every request, not just when you actually  
use a session variable. So the delay is probably in your login code  
and doesn’t have anything to do with sessions.
