Previous Thread
Next Thread
Print Thread
Rate Thread
#220002 06/28/2002 3:34 PM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
I realize this isn't really a mod or a mod suggestion, but I couldn't figure out a better place for it.

I just know as soon as I post this the software will make a liar out of me , but . . . .

I made a few very tiny changes with the cookies about a week ago, and I haven't had a single problem since. I'm always completely logged out now when I click logout.

I changed the following:

In logout.php, I made the fixes I noted in this bug report.

I also looked through the ubbt.inc.php file, and noted any cookies it set. I added the w3t_language cookie to logout.php. I only know English, so I never changed my language and not having that cookie stay on my computer isn't an issue. I don't know if it would be bothersome to those who regularly read in another language.

I also changed all the figures from [:"red"]- 3600[/] to [:"red"]- 86400[/]. The original sets the cookie backwards 1 hour. I read someplace (in my many travels on the web trying to learn about cookies) that some people believe the - 3600 standard that many websites use isn't long enough, given differences in time zones. That article suggested 24 hours instead. So I switched all of the cookies to - 86400.

So I changed this:
code:
setcookie("w3t_myid","", time() - 3600,"{$config['cookiepath']}");
setcookie("w3t_mysess","", time() - 3600,"{$config['cookiepath']}");
setcookie("w3t_visit","", time() - 3600);
setcookie("w3t_key","", time- 3600,"{$config['cookiepath']}");
}

// ----------------------------------
// Give them a new login box
$html -> send_header($ubbt_lang['LOGIN_PROMPT'],$Cat,0,$user,0,0,1);
if ($config['tracking'] == "cookies") {
$rememberme = "<input type="checkbox" name="rememberme" value="1" cla
ss="formboxes" /> {$ubbt_lang['REMEMBER_ME']}<br /><br />";
}



to this:
code:
setcookie("w3t_myid","", time() - 86400,"{$config['cookiepath']}");
setcookie("w3t_mysess","", time() - 86400,"{$config['cookiepath']}");
setcookie("w3t_visit","", time() - 86400, "{$config['cookiepath']}");
setcookie("w3t_key","", time() - 86400,"{$config['cookiepath']}");
setcookie("w3t_language","",time() - 86400,"{$config['cookiepath']}");
}

// ----------------------------------
// Give them a new login box
$html -> send_header($ubbt_lang['LOGIN_PROMPT'],$Cat,0,$user,0,0,1);
if ($config['tracking'] == "cookies") {
$rememberme = "<input type="checkbox" name="rememberme" value="1" class="formboxes" /> {$ubbt_lang['REMEMBER_ME']}<br /><br />";
}



As I said, I haven't had a problem yet. But I've had 3 boards up in different directories and haven't had a problem, when normally I would have by now. I guess when we open the board up to all the members I'll know if it really makes a difference, because I won't get 10 emails a day from people who can't log in.

I know a few people have mentioned that it may be necessary to erase the cookies from both www.yourdomain.com and yourdomain.com, but when I was looking through our logs yesterday, I noticed a fair amount of hits to our Dedicated IP address as well. I had never thought of the IP address as an additional cookie that could have been set. Those wouldn't have shown up if I told people just to delete the cookies from our domain, since most people wouldn't recognize our IP address.

One of these changes may have been what helped, or it may have been all of them, or it may have been none of them. It's working for now, so I don't dare look into it any further. If someone sees something wrong post.


[:"red"]Lisa[/]
Sponsored Links
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Moving this to the V6 Modifications board as it seems a post requesting feedback on a modification and possibly assistence for bug-testing it.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Thanks!


[:"red"]Lisa[/]
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
Thanks Lisa!

I've applied it to my board. I'll let you know if I have any problems.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)