Check the value of the "*session*.gc_maxlifetime" config on your php.ini.

On Fri, Sep 3, 2010 at 10:34 AM, pghoratiu <[email protected]> wrote:

> Check the sessions settings in php.ini as well.
>
> What operating system do you use? For instance on Ubuntu there is a
> cron job that deletes the session files and this
> is controlled by php.ini configuration:
>
> # /etc/cron.d/php5: crontab fragment for php5
> #  This purges session files older than X, where X is defined in
> seconds
> #  as the largest value of session.gc_maxlifetime from all your
> php.ini
> #  files, or 24 minutes if not defined.  See /usr/lib/php5/maxlifetime
>
> # Look for and purge old sessions every 30 minutes
> 09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /
> var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/
> maxlifetime)
> -print0 | xargs -n 200 -r -0 rm
>
>    gabriel
>
>
> On Sep 3, 4:27 pm, HAUSa <[email protected]>
> wrote:
> > My session won't hold! After 30 minutes, I'm logged out again!
> > I obvious must have gotten something wrong, but I cannot figure it
> > out...
> >
> > This is my factories.yml:
> >
> > test:
> >   storage:
> >     class: sfSessionTestStorage
> >     param:
> >       session_path: %SF_TEST_CACHE_DIR%/sessions
> >
> >   response:
> >     class: sfWebResponse
> >     param:
> >       send_http_headers: false
> >
> >   mailer:
> >     param:
> >       delivery_strategy: none
> >
> > dev:
> >   mailer:
> >     param:
> >       delivery_strategy: none
> >
> > all:
> >   routing:
> >     class: sfPatternRouting
> >     param:
> >       generate_shortest_url:            true
> >       extra_parameters_as_query_string: true
> >
> >   storage:
> >     class: sfSessionStorage
> >     param:
> >       session_name: f9bc38a4
> >
> >   user:
> >     class: myUser
> >     param:
> >       timeout: 2592000
> >
> >   view_cache_manager:
> >     class: sfViewCacheManager
> >     param:
> >       cache_key_use_vary_headers: true
> >       cache_key_use_host_name:    true
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to