GALLERYSID Breaking Images

travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Thu, 2005-12-01 16:37

Hello,

When my main.php page is loaded for the first time from a browser, Gallery seems to append the string below to the end of the image URL -- breaking the image. ...but when you refresh, the g2_GALLERYSID is gone, and the image works fine.

?g2_GALLERYSID=eb4d6a4ee5ec289558e696a6458b7645

URL to site: http://tinyurl.com/cx73v

Thoughts?


Gallery version = 2.0 core 1.0.0
PHP version = 4.3.11 apache
Webserver = Apache/1.3.33 (Unix) mod_jk/1.2.8 Sun-ONE-ASP/4.0.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Database = mysqlt 4.1.13-standard
Toolkits = Exif, ImageMagick, Thumbnail, Gd
Operating system = Linux gatorasp.websitewelcome.com 2.4.31 #2 SMP Sun Jul 24 21:45:08 CDT 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-01 17:33

what integration is that?

a sample url that doesn't work, from your website...
http://travelvice.com/support/alterimage.php?url=http://snapshots.travelvice.com/download/1495-8/thailand.jpg?g2_GALLERYSID=6d9ba394bdecb7fed172ff65f56e81ee

so you've got a url= thing there.

that means that your script / integration can't handle URL params in the url= thing. i guess you'd have to url encode the whole nested url.

better do it as all other integrations:
generate urls like

http://snapshots.travelvice.com/download/1495-8/thailand.jpg?g2_GALLERYSID=6d9ba394bdecb7fed172ff65f56e81ee directly, if possible.

but g2 doesn't yet support G2 and the embedding application being on different domains / subdomains.

 
travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Thu, 2005-12-01 17:38

It's odd because after the initial display, it drops the g2_GALLERYSID param.

Is there a way to disable this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-01 18:09

no, that's needed for cookieless browsing.

else, people behind special security systems or people that don't accept cookies can't do things that require a g2 session (printing with cart, downloading with cart, login, do things as registered users, ...)