tags:

views:

149

answers:

3

I have searched through the google and also joomla forums but didn't got what exactly I was looking for.

  • My main purpose is to set the joomla session live for ever.
  • Many forums says its not good to keep a higher value (security issues) but I don't want to consider that right now.

My question is : What if I set the session lifetime value to "0" (Zero), will the session be active for ever? or the user will NOT be able to login completely?

Thanks, Tanmay

A: 

I don't know Joomla's session management functions in detail, but I assume they are based on ordinary cookies. With those, a value of 0 will lead to the cookie being deleted at the end of the session, so you may want to go with an impossibly large value.

Pekka
@Pekka: based on your assumption, if its working the same way in joomla, then if I set the value to Zero, the user session will be kept live until the browser is closed? So user will have to login again when they re-open the browser? But if they dont close, they will be logged in forever?
jtanmay
@jtanmay yes that is the way it should be according to the setcookie() docs.
Pekka
@Pekka: Thanks for your time and answer. I have got the clarification. I am already doing a auto-login when the browser is opened. So setting the value to zero will do the trick for me.Thanks again.
jtanmay
@jtanmay ah okay, I understood you wrong here, I thought you need an "eternal session" regardless from whether a browser is running or not. You're welcome.
Pekka
A: 

Hello. I just set my session to 0 and now I can't login... How can I login again? Any help should be appreciated...

rodmarcos
@rodmarcos: If the making session to 0 logs you out everytime, may you can change the configuration.php directly!
jtanmay
oh in case you don't know which variable you have to change its - $lifetime
jtanmay
A: 

Thanks jtanmay :D

rodmarcos