projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7cbfc09
)
Improve text message when session is expired
author
Joey Schulze
<joey@infodrom.org>
Sat, 21 Dec 2013 20:21:44 +0000
(21:21 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 21 Dec 2013 20:21:44 +0000
(21:21 +0100)
lib/general.php
patch
|
blob
|
history
diff --git
a/lib/general.php
b/lib/general.php
index
f6caf0a
..
b8277e8
100644
(file)
--- a/
lib/general.php
+++ b/
lib/general.php
@@
-95,7
+95,8
@@
function check_session()
return true;
else {
if (empty($_SESSION['sys']['login']))
return true;
else {
if (empty($_SESSION['sys']['login']))
- format_ajax(array('error' => "No permission to access data.\nNo active session found.\nYou may need to re-login."));
+ format_ajax(array('error' => "No permission to access data.\nNo active session found.\nYou need to re-login.",
+ 'logout' => true));
else
format_ajax(array('error' => 'No permission to access data'));
}
else
format_ajax(array('error' => 'No permission to access data'));
}