Gallery session problems when embedded - appends session on SECOND click

toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Mon, 2006-05-15 19:43

All the details are in this threadover at the WPG2 forums. They don't seem to be able to provide any ideas as to why this is happening.

Basically, when I FIRST visit my site, via a direct link to an embedded album, it kicks me back to the main page. But it then adds a session variable, eg:
http://www.digitaltoast.co.uk/blog/index.php?g2_GALLERYSID=3a6bXXXXX6824f8b9d0aae0bd995d417
to my gallery, which is then removed on the NEXT click, which then works.
The session directory is set in php.ini, is writable, and has sessions in it.
Anyway, see the WPG2 thread for more info. I'm totally lost, spent about a week trying to figure this out. Going directly to Gallery 2 works first time.

Was there a gallery diagnostics page for sessions and stuff somewhere? Or was I thinking of G1?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-05-15 22:01

> The session directory is set in php.ini, is writable, and has sessions in it.

g2 sessions have nothing to do with PHP's session extension.
we use PHP extension based sessions only during installation time.

as to your IE7 issues: please report any IE7 to the IE7 developers. IE7 is supposed to behave like IE6 in most cases. if it doesn't, it's a bug.

also, what G2 and wpg2 integration versions are you using?

lastly, what's the expected behavior? i don't know the default behavior of wpg2.

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Wed, 2006-05-17 18:37

I'm wondering now about what the different type of sessions mean, and how gallery works etc.

For example, from other postings, it seems that Gallery should have it's own sessions directory somewhere under my "root level" g2albums.
I don't see this anywhere. All I can find is my normal sessions folder, configured in php.ini

With the cookies section setup to be / and .digitaltoast.co.uk in gallery, if I look in cookies in my browser, I get:
www.digitaltoast.co.uk PHPSESSID xxxx
digitaltoast.co.uk GALLERYSID xxxx

If I delete both cookies, then refresh the page, then the whole lot is appended to the url!
http://www.digitaltoast.co.uk/blog/v/americas/?g2_GALLERYSID=XXXXXbb7669eef923c95587ebd0487&PHPSESSID=XXXXXcb76c83a5195c20ca22fd8513c

NOW - if I blank out the cookies section in the galleries preferences, then all I get under digitaltoast.co.uk is the google analytics cookies, and under www.digitaltoast.co.uk I now have "PHPSESSID" and "blog GALLERYSID", neither of which bear any relation to what's in the session directory.

Versions as per signature

--
Gallery version = 2.1.1 core 1.1.0.1
PHP version = 5.1.2 cgi
Webserver = Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Thu, 2006-05-25 11:48

On another forum, someone said:

Quote:
As for the other stuff, disable session.use_trans_sid and enable session.use_only_cookies and see if that helps.

set session.use_trans_sid to be 0, but could not find the session.use_only_cookies.
I found
session.use_cookies = 1 ; whether to use cookies
in the file and added
session.use_only_cookies = 1 ;
below it.

HOWEVER - something even odder is happening now! Instead of it kicking me back to the main page, it is showing odd snippets of code, for example:
<!--This returns a random filenam
or
<!--[if gte IE 5.5000]>
If I then click refresh, it works.

Which made me think that the problem might lie with the random block module, which I disabled, to no avail.
I've also switched themes back to default. Same issue.

*SUDDENLY*! Revelation! It's the mod rewrite! Continued in new thread here

Gallery version = 2.1.1 core 1.1.0.1
PHP version = 5.1.2 cgi
Webserver = Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.