Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Always setting new session (sid from cookie not in DB?)
#4
I also found this bug in MyBB 1.2.3 as I'm working on MKPortal. Another way to fix is just disable or delete :

		// As a token of our appreciation for getting this far, give the user a cookie
		if(!$_COOKIE['sid'] && $this->sid)
		{
//			my_setcookie("sid", $this->sid, $mybb->settings['sessiontimeout'], true);
			my_setcookie("sid", $this->sid, -1, true);
		}


and ADD at the end of function create_session($uid=0):
my_setcookie("sid", $this->sid, -1, true);

Cookie will be set everytime a new session is created.
[Image: vnchannel0.png]

MKP | MKV (EN) | VNC (EN)


Messages In This Thread
RE: [F] Always setting new session (sid from cookie not in DB?) - by vnc - 2007-03-16, 11:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)