aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-02-11 13:23:54 +0000
committernikrou <nikrou@piwigo.org>2006-02-11 13:23:54 +0000
commit512740968f7f09b3901897416ded964f46cb5faa (patch)
tree7f133b779b5830715f725d873ff320fddaeedf52 /include/functions_session.inc.php
parentda21a99873a5fd74e4d476fdc948bb052a267949 (diff)
small modification: we can now store any information in sessions
(cf topic:5667) git-svn-id: http://piwigo.org/svn/trunk@1032 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_session.inc.php')
-rw-r--r--include/functions_session.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php
index 03a6dd155..8115c8ef9 100644
--- a/include/functions_session.inc.php
+++ b/include/functions_session.inc.php
@@ -154,7 +154,8 @@ SELECT id
{
$query = '
UPDATE '.SESSIONS_TABLE.'
- SET expiration = now()
+ SET expiration = now(),
+ data = \''.$data.'\'
WHERE id = \''.$session_id.'\'
;';
pwg_query($query);