summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-21 11:20:49 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-21 11:20:49 +0200
commit161d8524cf1c37d3ae0a4ae3442ed03fbca2e48c (patch)
tree0acd043e77a25e02be449ed216e0492075cd2c0d
parent4a8d9de07e65b93a2329e9f7176b3148f7d7bcef (diff)
Close session in long running methods
These do not write to the session but may run for some time. There is no need to keep the session locked while they perform their work. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/Main.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/controllers/Main.php b/application/controllers/Main.php
index 279d34520..31100f3d7 100644
--- a/application/controllers/Main.php
+++ b/application/controllers/Main.php
@@ -74,6 +74,7 @@ class Main extends MY_Controller {
function _download()
{
+ session_write_close();
$id = $this->uri->segment(1);
$lexer = urldecode($this->uri->segment(2));
@@ -469,6 +470,7 @@ class Main extends MY_Controller {
function thumbnail()
{
+ session_write_close();
$id = $this->uri->segment(3);
if (!$this->mfile->valid_id($id)) {