Loading...
 
Skip to main content

Features / Usability


Saving Draft feature - session lifetime

Hi Running 2.0RC1 . I edited a big long page only to find my session had timed out & I lost the lot. I have 'save drafts' turned on but where do they save to?

Thanks

Alternatively, anyone know the best place to change the session_lifetmie preference - I can see it in a few php files and the database so I could change it in all but wouldn't be 100% sure it would pick up in all places it's needed.

It's probably stating the obvious but there is an "Edit idle timeout:" setting in the Wiki admin area - its about a third of the way down the Wiki features list - but it looks like the maximum setting is 30 mins. I've always assumed this does indeed change the idle time you have but I've never tested it.

I've never tried the Save Draft feature since it seems to need the experimental Ajax features which may or may not be particularly stable.


So when I changed the pref value in the database, the number in the "this session will expire...." message over the edit box mirrored the change, but the session still timed out. The key location seems to be session.gc_maxlifetime in php.ini. Changing that I managed to leave a session open for several hours.

Note to devs (if any are reading) - the value on the 'this session will expire...' message should really tick down on a js timer and perhaps when it reaches something like 5 become more aggressive (alert()?). Certainly the user should be poked mercilessly if the timer goes beyond 0.