I believe I've found a mistake in the Joomla documentation, according to the docs

getExpire should get session expiration time in minutes.

I've checked my settings and the session lifetime is set to 15minutes Session Settings

but when I use the following code

echo "session expiration is ",$expiry,"<br/>";

The result is "session expiration is 900". I'm assuming the result is in seconds 15*60=900.


  • Can someone confirm that getExpire() normally returns the result in seconds?
  • Who should you contact if you think you have found a problem with the Joomla documentation?
  • Yes, getExpire() returns result in seconds. As you can see here and here, they are converting lifetime value to seconds (default is 15 minutes, so 900 seconds).
  • Documentation is automatically generated from source code. So you should create a new issue and describe the bug. Or I can do that. Let me know.
| improve this answer | |
  • I'll leave it to you Rene. Sorry and thanks :) – TryHarder Jan 5 '16 at 11:42
  • Okay. No problem. – Rene Korss Jan 5 '16 at 11:43
  • 1
    Made issue and PR to fix this. Issue is now closed, so this bug is removed. – Rene Korss Jan 5 '16 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.