Page 1 of 1

Session problem with g2-event-module

Posted: Fri Jun 01, 2007 12:20 pm
by beerlao
Hi,

I am using serendipty 1.2 and gallery2 (Version information below). Users have to log in in s9y to view posts. They are also required to log in to g2 to view any pictures.

I embedded g2 in serendipity using the g2embed event plugin. I changed the plugin to authenticate users with g2 whenever they log-in in s9y. If the s9y user doesn't exist in g2, it will be created on the fly. g2 is set up to only show elements, view/post comments and vote to registered users.

All is doing fine, but whenever I add the "post comment" function in g2 to any album or element it seems that I am loosing the session. That means the embedded g2 won't show the element but only the broken image placeholders. In that case g2 is also not shown in my blog layout, but in the standalone g2 layout. If I deactive the comment-function, all goes well.

Do you have any hints about that?

Thank you in advance!

Serendipity-Version: 1.2
g2-event-plugin: 0.3
Gallery-Version = 2.2.1 Kernel 1.2.0.1
PHP-Version = 5.2.0-10 apache2handler
Webserver = Apache/2.2.3 (Debian) mod_jk/1.2.18 PHP/5.2.0-10 mod_ssl/2.2.3 OpenSSL/0.9.8e
DB = mysql 5.0.38-Debian_1-log, lock.system=flock
Tools = ArchiveUpload, Dcraw, Exif, Ffmpeg, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd, Getid3, jpegtran
Caching (Speedup) = none, none
OS = Linux [...] 2.6.21.3-v0.02-mk #1 Wed May 30 14:03:35 CEST 2007 i686

Re: Session problem with g2-event-module

Posted: Fri Jun 01, 2007 1:22 pm
by garvinhicking
Hi!

Yes, I'm quite certain that the g2's session management in that case cannot co-exist with the s9y PHP session management in place.

I am not familiar with the G2 code, but I think it would be a lot of work to be able to use both session managements on the same PHP execution flow.

Best regards,
Garvin

Re: Session problem with g2-event-module

Posted: Fri Jun 01, 2007 1:50 pm
by beerlao
garvinhicking wrote:Hi!

Yes, I'm quite certain that the g2's session management in that case cannot co-exist with the s9y PHP session management in place.

I am not familiar with the G2 code, but I think it would be a lot of work to be able to use both session managements on the same PHP execution flow.

Garvin
Thank you for the explanation. I have no time to steep that deep into the session management code. It works fine without the comment function, so I keep up with that.

Thanks for your time :-)