Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

FixShortSessions

Summary: How to fix short sessions so you aren't prompted frequently for a password
Version:
Prerequisites:
Status:
Maintainer:

Problem

After spending a long time editing long pages, on saving the changes you may be prompted for a read password.

Solution

If you control the php implementation, try increasing the session.gc_maxlifetime from the default of 1440 (24 minutes) to something larger than the time you expect to spend on any page (an intermediary save button might also help reduce that time)

You could perform this from the vhost configuration with this command
php_value session.gc_maxlifetime 14000 (10 times more than default)

However, if you have your wiki on a shared server, other people may hijack/purge your sessions, so you'd have to provide a directory for holding the sessions. Create a directory under your wiki area (e.g. pub/sess/), chmod 777 pub/sess, then put this in config.php:

     session_save_path("$FarmD/pub/sess"); // (#)

Then copy the .httpauth from wiki.d to pub/sess.

(For more detail, check php docs for Session handling functions)

Notes

See Also

Contributors

Comments

See discussion at FixShortSessions-Talk

Edit - History - Print - Recent Changes - Search
Page last modified on September 08, 2012, at 03:03 PM