Welcome, Guest. Please Login or Register.
May 15, 2025, 12:52:28 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  I could really use some help with a baffling cookie problem « previous next »
Pages: [1] Reply Ignore Print
Author Topic: I could really use some help with a baffling cookie problem  (Read 360 times)
Psythor
Noobie
*
Posts: 4


I'm a llama!

I could really use some help with a baffling cookie problem
« on: December 20, 2003, 04:50:16 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 3.23.x
Server Platform: Unix, Linux, or BSD
Link to Forum: http://forums.pkmn.co.uk

Problem Description:
Hi,

In the last two years, I have developed the YaBB user system for my site, making different features members only and all sorts. We based most of the members only stuff on the fact that $HTTP_COOKIE_VARS['YaBBusername'] didn't equal a blank, and went as far as using session cookies that had data in them read from the members database.

Anyway, since upgrading to 1.5.4, some of the users arn't able to access cookie-based things on the site. Of course, the cookie is set to the forums directory, as opposed to subdomain, as always- it just doesn't seem to want to cooperate.

I think this has something to do with YaBBuser- and when that is unserialised, (line of code pasted from Load.php), it gives the users ID number, and a string of what I think must be the encrypted password encrypted by something else, again. (Or so LogInOut.php leads me to believe).

Anyway, could anyone shead any light on how I can get my site and scripts to work with the what I guess is a new cookie structure, in LogInOut workings? Mainly the differences between 1.5.1 and 1.5.4.

Thanks in advance,

James O'Malley
www.pkmn.co.uk
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:I could really use some help with a baffling cookie problem
« Reply #1 on: December 20, 2003, 09:03:55 PM »
Reply with quote

Look at LoginOut.php and Load.php.  There have been several changes, and now it's stored in a serialized cookie....

list ($ID_MEMBER, $password) = unserialize(stripslashes($_COOKIE['sadasdasd']));

Or similar...

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  I could really use some help with a baffling cookie problem « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.126 seconds with 21 queries.