Hi all,
I'm working with a system where, unfortunately, the session ID is passed via the URL. That is, every URL that is constructed in the system, must have the session id appended to it.
http://mysite.com/?customsess=[long string of characters]
From what I can observer, because ckfinder does everything through ajax, even though I pass the session id initially, it is lost when the ajax requests are made.
For example,
First, I hit the main ckfinder html page (passing in the session id)
http://mysite.com/ckfinder/ckfinder.html?Type=Images&customsess=[...]
Next, using firebug, I observer the following ajax requests being made:
http://mysite.com/ckfinder/core/connector/php/connector.php?command=Init&type=Images
http://mysite.com/ckfinder/core/connector/php/connector.php?command=GetFiles&type=Images¤tFolder=%2F&langCode=en&hash=[...]
I'm pretty sure that the request with the "Init" action is what calls up config.php, which is where I'd like to have access to the session in order to appropriately set the $baseUrl. It seems that because the session id is not appended to the ajax call, I can't access my session in config.php. Yes, I did put session_start() at the top of the file, but $_SESSION is an empty array.
Any thoughts or ideas? Is there some way I can get an extra parameter attached to every ajax request?
Thanks
-John
Tue, 09/14/2010 - 22:45
#1
Re: session id in url
Came up with something, definitely not ideal, but I'll post it here for anyone who comes across a similar issue.
Note, I am using the php manual integration method.
php script