aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/public/session
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/policy/public/session
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz
mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/policy/public/session')
-rw-r--r--mayor-orig/www/policy/public/session/logout-pre.php28
-rw-r--r--mayor-orig/www/policy/public/session/set-pre.php10
2 files changed, 38 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/public/session/logout-pre.php b/mayor-orig/www/policy/public/session/logout-pre.php
new file mode 100644
index 00000000..ac344fee
--- /dev/null
+++ b/mayor-orig/www/policy/public/session/logout-pre.php
@@ -0,0 +1,28 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require('include/share/session/close.php');
+
+ closeSession();
+ closeOldAndIdleSessions();
+ if (defined('_ALLOW_SULIX_SSO') && _ALLOW_SULIX_SSO===true) {
+ session_start();
+ unset($_SESSION['portalLoggedPassword']);
+ unset($_SESSION['szuloDiakIdOk']);
+ session_destroy();
+ header('Location: /');
+ } else {
+// session_start();
+// unset($_SESSION['szuloDiakIdOk']);
+// session_destroy();
+ session_start();
+ session_unset();
+ session_destroy();
+ session_write_close();
+ setcookie(session_name(),'',0,'/');
+ session_regenerate_id(true);
+ header('Location: index.php');
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/session/set-pre.php b/mayor-orig/www/policy/public/session/set-pre.php
new file mode 100644
index 00000000..d3e77776
--- /dev/null
+++ b/mayor-orig/www/policy/public/session/set-pre.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $_JSON;
+ $layout = readVariable($_GET['layout'],'id',0);
+ $_SESSION['pageLayout'] = $layout;
+ $_JSON['success'] = true;
+ $_JSON['pageLayout'] = $layout;
+?>