in apps/frontend/config/factories.yml

  storage:


    class: sfPDOSessionStorage


    param:


      db_table:                            session


      database:                           propel


      db_id_col:                           sess_id


      db_data_col:                       sess_data


      db_time_col:                       sess_time


      session_name:                    pearl


      session_cookie_path:           /


      session_cookie_domain:      your host


      session_cookie_lifetime:      +30 days


      session_cookie_secure:       false


      session_cookie_http_only:    true


Because sfSessionStorage and its sub class use php function
"session_set_cookie_params" to set cookies, which can only accept a int type
for time.

when use sfCacheSessionStorage, because it wrapped a function setCookie
which will convert string time to int, so it's ok if session_cookie_lifetim
is string like"+30 days".

so a int is the best choice here.
-- 
汪渊 (Raymond Wang) CTO, ELEME Inc.
Email: raymond.w...@ele.me <mark.zh...@ele.me> | Gtalk:
54raym...@gmail.com| Mobile: +86-134-
8289-3679
http://ele.me 饿了么?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to