hey MODx
im writing a new snippet that will writes some information to a database.
I need to know how i can get the username or user id
any information will be greatly appreciated
-
☆ A M B ☆
- 24,524 Posts
It’s in the $_SESSION, and there are some API functions to get it for you as well.
http://www.sottwell.com/article-sessions.html
http://wiki.modxcms.com/index.php/API:getLoginUserName