<id>
cookies-problem
</id>
<version>
1 BETA
</version>
<author>
sylvester
</author>
<mod info>
I think I've solved the cookies-problem :)
</mod info>
<edit file>
Sources/LogInOut.php
</edit file>
<search for>
setCookie ("expiretime",time()+(60*$Cookie_Length),time()+30240000,"/");
</search for>
<add after>
setCookie ("begintime",time()*(60/$Cookie_Length),time()+30240000,"/");
</add after>
<edit file>
Sources/Load.php
</edit file>
<search for>
$password = $HTTP_COOKIE_VARS[$cookiepassword];
$username = (isset($HTTP_COOKIE_VARS[$cookieusername]) && $HTTP_COOKIE_VARS[$cookieusername] != "") ? $HTTP_COOKIE_VARS[$cookieusername] : 'Guest';
</search for>
<add after>
setCookie("begintime");
setCookie("begintime",'',time()-3600,"/");
</add after>
<search for>
/* clear the cookies
note that in php, setCookie is called in reverse order - so we set it to an
expired time 'after' clearing it */
</search for>
<add before>
if(isset($HTTP_COOKIE_VARS['begintime'])) {
</add before>
<search for>
setCookie($cookieusername);
setCookie($cookieusername,'',time()-3600,"/");
setCookie($cookiepassword);
setCookie($cookiepassword,'',time()-3600,"/");
</search for>
<add after>
setCookie("begintime");
setCookie("begintime",'',time()-3600,"/");
</add after>
<search for>
/* clear the password and the username */
$password = '';
$username = 'Guest';
</search for>
<add after>
}
</add after>