coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: sporkit on August 28, 2004, 11:30:02 PM

Title: cookies and sessions die
Post by: sporkit on August 28, 2004, 11:30:02 PM
im including a flash banner on my site and wrapping my sites header and footer around the cpg script.  using php i tell my template to either play an into banner (when a users first visits the site) or a loop banner (so im not displaying a flashy banner every time they click something).

anyway i tried storeing a varaible that will tell the my server to play either the intro or the loop.  this works fine around my site however when i include my header into the cpg script all my sessions and cookies get reset.  which means i cant pull the value i need to stop the flash intro from playing.

does anybody know if there is a reason cpg does this or possibly a work around?
Title: Re: cookies and sessions die
Post by: Joachim Müller on August 29, 2004, 02:00:06 AM
coppermine doesn't use sessions (unless bridged with your bbs app, but then it's the bbs app that will use sessions). There's little use talking in theory about your issue, unless you post some links (to your start page and your coppermine gallery) and some code snippets.

Joachim
Title: Re: cookies and sessions die
Post by: sporkit on August 29, 2004, 05:57:01 PM
$domain = $_SERVER['HTTP_HOST'];
$path = $_SERVER['PHP_SELF'];
$cururl = $domain.$path;
if ( $cururl == 'www.f8klan.com/thug/pictures/index.php' || $cururl == 'www.f8klan.com/thug/pictures/thumbnails.php' || $cururl == 'www.f8klan.com/thug/pictures/displayimage.php' || $cururl == 'www.f8klan.com/thug/pictures/upload.php')
{

$lgo_ply = 1;

}


well ive been dealing with this problem for quite some time .  rather than fix it i just surpressed it for now.  when my new site is up ill post more code and links.