How to Find out username with ajax request?*
Just like the title says, I need to find out via an ajax request the username of the user (or without ajax, but with javascript).
I first thought that it would've been obvious that some general info (like username) is stored in the javascript gdn object, but apparently none such is
Therefore... any ideas on how to do it?
I first thought that it would've been obvious that some general info (like username) is stored in the javascript gdn object, but apparently none such is
Therefore... any ideas on how to do it?
Tagged:
0
Comments
$this->SetDefinition('Username', $Session->Username);
and
var Username = gdn.definition('Username');