From 7d2e309c9bb15040abc378ec4cdf0115550f6d6d Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Thu, 18 Feb 2010 12:56:12 +0000 Subject: [PATCH] MDL-21650 "cookieless sessions fail when opening a pop up window using the javascript 'openpopup' function for example from the course view page " adding the session name and id in the js function openpopup. --- lib/javascript.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/javascript.php b/lib/javascript.php index 83f62928ff2..e13192273e7 100644 --- a/lib/javascript.php +++ b/lib/javascript.php @@ -35,6 +35,19 @@ setTimeout('fix_column_widths()', 20); //httpswwwroot ?>" + url; +usesid) && !isset($_COOKIE[session_name()])){ + $sessionparams = session_name() .'='. session_id(); + echo << var windowobj = window.open(fullurl, name, options); if (!windowobj) { return true;