-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsession_logged_patch.diff
77 lines (69 loc) · 2.61 KB
/
session_logged_patch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Index: www/resources/icons/favicon.ico
===================================================================
No se puede mostrar: el archivo está marcado como binario.
svn:mime-type = application/octet-stream
Index: lib/SimpleSAML/XHTML/Template.php
===================================================================
--- lib/SimpleSAML/XHTML/Template.php (revisión: 3156)
+++ lib/SimpleSAML/XHTML/Template.php (copia de trabajo)
@@ -486,6 +486,9 @@
*/
private function readDictionaryJSON($filename) {
$definitionFile = $filename . '.definition.json';
+
+ SimpleSAML_Logger::debug('-----> '.$definitionFile);
+
assert('file_exists($definitionFile)');
$fileContent = file_get_contents($definitionFile);
@@ -541,6 +544,8 @@
SimpleSAML_Logger::debug('Template: Reading [' . $filename . ']');
$jsonFile = $filename . '.definition.json';
+
+ SimpleSAML_Logger::debug('Voy a leer '.$jsonFile);
if (file_exists($jsonFile)) {
return $this->readDictionaryJSON($filename);
}
@@ -696,7 +701,7 @@
if (!in_array($language, $availableLanguages, TRUE) || headers_sent()) {
return;
}
- setcookie('language', $language, time()+60*60*24*900, '/');
+ setcookie('language', $language, time()+60*60*24*900, '/', '.openmooc.org');
}
}
Index: lib/SimpleSAML/SessionHandlerCookie.php
===================================================================
--- lib/SimpleSAML/SessionHandlerCookie.php (revisión: 3156)
+++ lib/SimpleSAML/SessionHandlerCookie.php (copia de trabajo)
@@ -45,6 +45,7 @@
* @return string The session id saved in the cookie.
*/
public function getCookieSessionId() {
+
if ($this->session_id === NULL) {
if(self::hasSessionCookie()) {
/* Attempt to retrieve the session id from the cookie. */
@@ -116,4 +117,4 @@
}
-?>
\ No newline at end of file
+?>
Index: lib/SimpleSAML/Session.php
===================================================================
--- lib/SimpleSAML/Session.php (revisión: 3156)
+++ lib/SimpleSAML/Session.php (copia de trabajo)
@@ -528,6 +528,7 @@
$this->authToken = SimpleSAML_Utilities::generateID();
$sessionHandler = SimpleSAML_SessionHandler::getSessionHandler();
$sessionHandler->setCookie($globalConfig->getString('session.authtoken.cookiename', 'SimpleSAMLAuthToken'), $this->authToken);
+ $sessionHandler->setCookie('saml2_logged', True);
}
@@ -563,6 +564,9 @@
$this->authority = NULL;
}
+ $sessionHandler = SimpleSAML_SessionHandler::getSessionHandler();
+ $sessionHandler->setCookie('saml2_logged', NULL);
+
/* Delete data which expires on logout. */
$this->expireDataLogout();
}