summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-08-28 13:56:37 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-08-28 15:12:34 +0200
commit25c2eb78d91ee581916f90dd7b248b86a72c5f2b (patch)
tree616430d595d0b488364e0a9dad83c91d6e92e4aa /application/controllers/user.php
parent9f73bdbc9c19570768f24e1fbb672a59afbf5f1b (diff)
Only create new sessions when the are really needed
Most sessions are just people viewing a paste. Those don't need a session until they want to log in so we don't have to pollute the database and waste resources. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index add6e8bdc..ef79baa78 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -36,6 +36,7 @@ class User extends CI_Controller {
function login()
{
+ $this->muser->require_session();
$this->session->keep_flashdata("uri");
if ($this->input->post('process')) {