I suppose the person best to answer this is paour, but perhaps someone else knows...
I current run gallery 1.5 (although all previous versions have this problem). It is running embedded in mambo. Alone and embedded in mambo, the gallery java add photos applet(big) works.
However, the live site runs behind an apache/perl security method which relies on a session cookie to aquire permissions to the sites' files.
I noted that a new cookie was passed in recent releases of gallery to pass the 'sessioncookie' cookie for mambo users, so i tried using this to pass my security cookie. (ie. the cookie1_value variable in util.php) This worked in that i no longer got a 403 forbidden error which is to be expected, but now i recieve the dreaded 'server conacted, but Gallery not found' error.(also as expected)
Is there any way I can hack the passing of both cookies to the Java applet?
Thanks for looking...
Posts: 1479
Seems to me you have been hacking already
Do I understand correctly that you want to pass a 3rd cookie?
Posts: 4
Yes! A third cookie! That would seem to be what I am asking.
Since posting, I tried using cookie_value to pass sessioncookie and cookie1_value to pass my security cookie, and that is working, but only tested to see if I could connect. I was able to connect, see the albums, and retrive picture already on the server. However, I am not sure if reassigning cookie_value from session_id() to 'sessioncookie' broke something else.
In the end, it does appear that passing a third cookie is the answer to my problem. I love using the java applet, and would like to make it available to the users of the site.
Thanks for the taking the time to respond!
keith
Posts: 1479
OK, I'll update the way GR reads the cookies from the applet parameters so it can load an arbitrary number of cookies. I'll try to commit a new build overnight.
Posts: 4
WOW! :D :D :D
Considering how specific a problem I have, that is extremely generous of you! :D
I hope others will benefit from the change in the future! If this works, it will surely make other embedding projects simpler when it comes to unsaved/session cookie passing.
I have wrestled with this issue on and off for about six months, but wanted to be sure I had a handle on what would actually solve the problem and if I could just get it done myself so as not to burden the Gallery Team...so...
Thank You!!! Thank You!!! Thank You!!! :D :D :D
I will let you know the results in a day or two, after I test things out.
keith
Posts: 4
Brilliant! :D
I downloaded and gave last nights build a whirl with the added cookies 'cookie2_name' and 'cookie2_value' in my util.php and all seems to be working as it should.
Thanks for taking the time to make this change Pierre-Luc. It is greatly appreciated.
keith