[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfw] Re: Understanding Session - sample app

I now found that Symphony session lifetime is bound to session_get_cookie_params()

which by default is 0, meaning the session is destroyed when the browser is closed.


Il giorno lunedì 18 aprile 2016 16:01:51 UTC+2, Elena Cenacchi ha scritto:
Hi Walt, thanks!
I also believe I'm using Symphony Session. I'm trying to figure out how/where to set the expiration time.
It's ok for me to aoutomatically start the session on first visit, but I would like to expire after some time from the last event on page.

I'll let you know what I find out.


Il giorno martedì 5 aprile 2016 23:18:38 UTC+2, Walt Sorensen ha scritto:
I believe a session starts on the first visit, even if the user is a "guest. logging in changes the session information to reflect that the user is not a guest but an authenticated user. 

I think it works out to 1 user = 1 session. Sessions always start on first visit. 
I think that's typical of all session packages.

but it looks like your using Symfony\Component\HttpFoundation\Session\Session for your sessions, so you should look at the documentation on that.

Framework source code: https://github.com/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-framework.