Hi,
I am trying to get dynamic image locations for ckfinder working on my asp website.
Somehow my session variables are cleared when ckfinder is loaded (is this normal??), so as a workaround, I'm trying to set the images path (for baseDir and baseUrl) in a cookie. This works fine until the image button is clicked in ckeditor: the existing cookie is deleted and a new cookie is created and so I've lost my path.
Is there a way to disable cookies for ckeditor/ckfinder? I don't mind the ckfinder settings not being saved and I already set the RememberLastFolder function to false.
Or is there a way to keep my session variables filled?
Thanks.
I am trying to get dynamic image locations for ckfinder working on my asp website.
Somehow my session variables are cleared when ckfinder is loaded (is this normal??), so as a workaround, I'm trying to set the images path (for baseDir and baseUrl) in a cookie. This works fine until the image button is clicked in ckeditor: the existing cookie is deleted and a new cookie is created and so I've lost my path.
Is there a way to disable cookies for ckeditor/ckfinder? I don't mind the ckfinder settings not being saved and I already set the RememberLastFolder function to false.
Or is there a way to keep my session variables filled?
Thanks.

Re: ckfinder/editor deletes cookie
http://dev.fckeditor.net/ticket/4707
Re: ckfinder/editor deletes cookie
I have been looking to the ticket you supplied, but that does not seem to be the issue here.
I am sure the cookie gets lost, because I'm monitoring the cookies folder on my pc. The cookie gets filled with all the correct information I need. At the moment I click the image button in the editor, the cookie disappears and a new one is created with wrong data (paths are gone).
ckfinder is not a virtual directory, it resides in the root of my website. It has its own application in IIS on server 2003.
Somehow this DOES work in Firefox, only IE seems to have this problem. Unfortunately, I have to use IE.
Do you know of any differences ckeditor/ckfinder gets handled by IE and Firefox?
Re: ckfinder/editor deletes cookie
That's the problem (or at least that's usually a problem with cookies). It must not be a different application, or the cookies set for the main application won't work there.
Re: ckfinder/editor deletes cookie
Besides, I have to configure ckfinder as a different application (within the same application pool) because otherwise my thumbs will not work. I get the following error when uploading an image:
It was not possible to complete the request. (Error Error returned in call to Asp.Net)
thumbs work fine when ckfinder is an application.
Re: ckfinder/editor deletes cookie
viewtopic.php?f=10&t=13604
Re: ckfinder/editor deletes cookie
Warning. The connector is enabled for everybody.
Warning The permissions of the "files" folder allows to execute Asp scripts. This can be dangerous if somehow an attacker manages to upload such a file there.
Warning The permissions of the "files" folder allows to execute Asp.Net scripts. This can be dangerous if somehow an attacker manages to upload such a file there.
For me, these are not errors for now, as I'm currently in a test phase for my website. Still my cookie resets. Any thoughts?
Re: ckfinder/editor deletes cookie
PS: yes, those messages aren't errors, they are just warnings that something might be wrong, but it's up to you to know if it's OK or not depending on your system.