summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2012-07-12 09:00:57 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2012-07-12 09:00:57 (GMT)
commit65c5cf66c1a1d4ed72989d3bdb5dad08f265b03b (patch)
tree6cc231822e98362acdcaa6187fd7d672c9ec65ba /virtualenv/pffedportal
parentf3c6826d05c13b94ab72a324713e72bd3d04f5b9 (diff)
downloadunivnautes-old-65c5cf66c1a1d4ed72989d3bdb5dad08f265b03b.zip
univnautes-old-65c5cf66c1a1d4ed72989d3bdb5dad08f265b03b.tar.gz
univnautes-old-65c5cf66c1a1d4ed72989d3bdb5dad08f265b03b.tar.bz2
disco: fix cookie error in simple-disco-store
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/media/simple-disco-store/store.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/virtualenv/pffedportal/media/simple-disco-store/store.html b/virtualenv/pffedportal/media/simple-disco-store/store.html
index 048bf0b..0294243 100644
--- a/virtualenv/pffedportal/media/simple-disco-store/store.html
+++ b/virtualenv/pffedportal/media/simple-disco-store/store.html
@@ -14,7 +14,7 @@
var C_RETURNIDPARAM = "returnIDParam";
var C_IS_PASSIVE = "isPassive";
var C_IDP_ENTITY_ID = "IdPentityID";
- var COOKIE_TIMEOUT_DAYS = 730;
+ var COOKIE_TIMEOUT_DAYS = 730; // 2 years
var qs = $.parseQuerystring();
var entity_id = qs[C_ENTITY_ID];
@@ -28,14 +28,13 @@
if (C_IDP_ENTITY_ID in qs) {
idp_entity_id = qs[C_IDP_ENTITY_ID];
debug_alert('set idp to ' + idp_entity_id);
- $.cookie(C_IDP_ENTITY_ID, qs[C_IDP_ENTITY_ID], { expires: COOKIE_TIMEOUT_DAYS });
} else {
idp_entity_id = $.cookie(C_IDP_ENTITY_ID);
}
function response() {
debug_alert('query by ' + entity_id);
if (idp_entity_id) {
- $.cookie(C_IDP_ENTITY_ID, qs[C_IDP_ENTITY_ID], { expires: COOKIE_TIMEOUT_DAYS });
+ $.cookie(C_IDP_ENTITY_ID, idp_entity_id, { expires: COOKIE_TIMEOUT_DAYS });
if (return_url.indexOf('?') == -1) {
return_url = return_url + '?';
} else {