Quote:
Originally Posted by Coume
Erm, so is there a way to know/check if a user is already logged in and if so, to get his userid? (outside of the forum obviously)
|
Just use the user ID from their cookie. If the user happen to mess with their cookies, they will just get an error saying the token is incorrect.
Quote:
Originally Posted by Coume
And for guest/not-logged in user, which userid and user_Salt should be used? Because there is no guest member defined in the user table
|
The token is "guest" for not-logged in users.