I downloaded trial version of the ckfinder and i noticed that it does not remember the last folder from previous use. I believe it should remember right since it has a config option. Also tried with different browsers like Chrome, Edge, Opera and set config.rememberLastFolder = true
to be sure but still same, it always stars from File
folder. Any idea?
Asked
Active
Viewed 699 times
-2

Ergec
- 11,608
- 7
- 52
- 62
1 Answers
8
I think I figured out where the bug is!
First of all you need to open the file: ckfinder.js
. The source code in this file is minified, so you need to "Reformat" it (Ctrl + Alt + L in PhpStorm)
and then go to line 1070. You will see a hardcoded cookie expiration date on this line. The problem is that this date is in the past, that's why cookies with CKFinder settings not saving in browser at all! I don't know why they put a hardcoded date, but all you need to do is change this date to something bigger, for example you can set: expires=Thu, 6 Oct 2038 01:00:00 UTC
. It will solve the issue.

Alex S.
- 106
- 2
-
Thanks, this answer really saved us, the original expire setting was: `expires=Thu, 6 Oct 2016 01:00:00 UTC; path=/` – jeffreydev Oct 17 '16 at 07:56
-
Thank you. It's worked for me! :) – Majid Basirati Dec 01 '16 at 11:46