Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Solved] Check if logged in : Which function does that?*
Im pretty new to Vanilla, so i wanted to know, which function exactly checks if the user has logged in?
0
Best Answer
-
Todd Vanilla Staff
On the server:
if (Gdn::Session()->IsValid()) { ... }
In javascript:
if (gdn.definition('SignedIn', '0') != '0') { ... }
0
Answers
On the server:
In javascript:
Thanks worked!
What needs to be imported to check for a vanilla session on other pages not a part of vanilla?