MyBB Community Forums

Full Version: ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
.................kl.................
I don't think MyBB even uses PHPSESSID.
(2011-11-27, 07:50 PM)Paul H. Wrote: [ -> ]I don't think MyBB even uses PHPSESSID.

?? Then how does it know users?
I'm purposely using:
alert(document.cookie);

and I see PHPSESSID???
Confused.
Forum URL?
(2011-11-27, 07:52 PM)Paul H. Wrote: [ -> ]Forum URL?

It's on my localhost...
I use XAMPP, and in my other PHP scripts, I never saw this before unless I used a session_start();
As the name suggests, it's a cookie for PHP Sessions. If you remove it, sessions wont work. Obviously you won't see it unless you use session_start() as it's only used when you're using sessions.
(2011-11-27, 08:02 PM)MattRogowski Wrote: [ -> ]As the name suggests, it's a cookie for PHP Sessions. If you remove it, sessions wont work. Obviously you won't see it unless you use session_start() as it's only used when you're using sessions.

But Paul said MyBB doesn't use sessions, so why does it show on my forum? How does mybb store user info then? I'm confused.....Huh
(2011-11-27, 08:04 PM)Username Wrote: [ -> ]But Paul said MyBB doesn't use sessions

No he didn't, he said MyBB doesn't use PHPSESSID, as in it doesn't specifically use this cookie anywhere in the code, but if you use PHP Sessions this will exist. MyBB uses sessions like any other script that you log in to will use sessions.
(2011-11-27, 08:06 PM)MattRogowski Wrote: [ -> ]
(2011-11-27, 08:04 PM)Username Wrote: [ -> ]But Paul said MyBB doesn't use sessions

No he didn't, he said MyBB doesn't use PHPSESSID, as in it doesn't specifically use this cookie anywhere in the code, but if you use PHP Sessions this will exist. MyBB uses sessions like any other script that you log in to will use sessions.

Okay, but why does it show up in my MyBB board?...
EDIT: Forget it. I think I broke it.
I don't know, I mean it doesn't show up on my localhost either and I use XAMPP too so there may be something different about your localhost setup or something. Either way, it's not something you need to worry about.
Pages: 1 2