Cookie error

Report bugs of current version 2.2.5 here!

Moderators: Moderator Team, Development Team

Cookie error

Postby teezee on Thu Feb 05, 2004 7:14 pm

If you have your stats on the same server as your website, and you use a username and password in cookie-system you'll get tons of javascript errors. Why?

I think i figured it out (a bit) but haven't been able to fix it completely:

My site runs on it's normal webroot: but my phpee stats run on

In my website I also use username and password, users can choose to store it in session or in cookie. These vars are named username and password. When pressing login, the following pages give an error because instead of the pphlogger.js the phpee login screen is loaded, saying your username and password are wrong! I tried to fix it by giving all setcookie tags from phpee the setcookie path "/tools/stats/" but that didn't work.
Anyone ideas?
Posts: 1
Joined: Thu Feb 05, 2004 7:08 pm
Location: Utrecht, the Netherlands

Postby sdjl on Fri Feb 06, 2004 12:30 am

Try the following:

Open login.php
On lines 53 and 54 you'll see the following two lines
setcookie("username", $username);
setcookie("password", $password);
Change with the following:
setcookie("username", $username, 3600, '/tools/stats/', '');
setcookie("password", $password, 3600, '/tools/stats/', '');

You'll obviously need to tweak parts of that.
Give it a try and let me know what happens.

User avatar
Posts: 1282
Joined: Mon Nov 17, 2003 1:13 am
Location: London, UK

Return to PPhlogger bug reports

Who is online

Users browsing this forum: No registered users and 1 guest