I noticed that my Moodle can not do two things at the same time, eg: download from file area and navigate course.
IMO it may be because we do not use session_write_close() - see php man here. In short: pages block on access to session file, session_write_close flushes session to disk and releases file lock. You can not change $SESSION and $USER after closing session, but you can still read it.
There are several places that could use it:
- file.php
- long pages that display pictures from file area
- any other pages that take long time to display
- before redirection (not sure??)
We do not need to call it when $nomoodlecookie = true;, because the session is not started and hence the session file is not opened.
Did I get it right??
Are there any hidden side effects??
Anyway I need this concurrent downloads for byte-serving and improved pdf support
skodak