I made a site with jsp and put FCKEditor in a page in a restricted area accessible after logging in.
In the editor I customized the window opened by the insert image button to open a jsp that shows an image gallery.
So in fck_image.html the button calls a function I wrote called openGallery()
And I put the function openGallery() in fck_image.js
In IE when the user clicks on the button to search for an image the popup window with my_gallery.jsp asks the user to log in again.
I read that this is a problem IE has when using ShowModalDialog function to open a popup window with the function ShowModalDialog.
In this case the popup is opened in a different process with a different session.
In _whatsnew.html (I am using FCKEditor version 2.4.3) I read that the "PreserveSessionOnFileBrowser" configuration option has been added to solved this problem and should be set to true.
Also on some posts in this forum I read that setting the parameter FCKConfig.PreserveSessionOnFileBrowser to true should solve the problem.
But in my case the problem is still there.
Can anyone help me ?
In the editor I customized the window opened by the insert image button to open a jsp that shows an image gallery.
So in fck_image.html the button calls a function I wrote called openGallery()
<input id="btnBrowse" onclick="openGallery();" type="button" value="Browse Server" fcklang="DlgBtnBrowseServer" />
And I put the function openGallery() in fck_image.js
function openGallery()
{
window.open('../../../my_gallery.jsp','_blank','width=600,height=400,scrollbars=yes,left=0,top=0');
}In IE when the user clicks on the button to search for an image the popup window with my_gallery.jsp asks the user to log in again.
I read that this is a problem IE has when using ShowModalDialog function to open a popup window with the function ShowModalDialog.
In this case the popup is opened in a different process with a different session.
In _whatsnew.html (I am using FCKEditor version 2.4.3) I read that the "PreserveSessionOnFileBrowser" configuration option has been added to solved this problem and should be set to true.
Also on some posts in this forum I read that setting the parameter FCKConfig.PreserveSessionOnFileBrowser to true should solve the problem.
But in my case the problem is still there.
Can anyone help me ?

Re: IE problem : new session with ShowModalDialog
You will need to copy a bit of code that the editor uses to open its windows and use the same code for your own.
in Admin\FCKeditor\editor\dialog\common\fck_dialog_common.js you will find the following - copy the followign into your openGallery fuction add your url info into the window.open calls with the .....
that should do the trick
Joe
// The "PreserveSessionOnFileBrowser" because the above code could be // blocked by popup blockers. if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser && oEditor.FCKBrowserInfo.IsIE ) { // The following change has been made otherwise IE will open the file // browser on a different server session (on some cases): // http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 // by Simone Chiaretta. var oWindow = oEditor.window.open( ....... ) ; if ( oWindow ) { // Detect Yahoo popup blocker. try { var sTest = oWindow.name ; // Yahoo returns "something", but we can't access it, so detect that and avoid strange errors for the user. oWindow.opener = window ; } catch(e) { alert( oEditor.FCKLang.BrowseServerBlocked ) ; } } else alert( oEditor.FCKLang.BrowseServerBlocked ) ; } else window.open( ..............) ;