Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small MediaWiki wiki in a hosted website. It works pretty well, except that I can't find where to configure the session timeout.

Right now, my session expires while I'm editing pages. I've seen all kinds of recomendations, including touching the PHP settings, but I can't find any authoritative answer.

Any suggestions?

share|improve this question
up vote 5 down vote accepted

If you are referring to PHP session timeout, it is set in php.ini and depends further on your PHP version.

This could be through session.gc_maxlifetime or session.cache-expire or even session.cookie_lifetime.

See also this thread for more info and this article.

share|improve this answer

The session timeout configuration is php stuff, not mediawiki's.

Look for session.cookie-lifetime in your php.ini file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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