View Full Version : Check for cookie = user logged in?
Kaitlyn2004
12-08-2009, 05:23 PM
What cookie value can I check to determine if the user is logged in or not? The one I have in my code is "sessionhash", but does a guest not get this as well?
Please let me know what would be safe/best to check. Thanks!
I'm curious too, I hope someone will tell us. I looked at includes/class_core.php at function vB_Session, and it looks like *maybe* if you have a session that is in the session table and the user id is not zero, that might mean the user is logged in. But if you're asking about cookies maybe you're thinking about client side?
Razasharp
04-21-2010, 11:32 AM
Did you find out how to do this after?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.