-
- 3 Posts
hi,
ive been spending hours trying to find a solution to this.
ive whmcs login logged in on another directory.
i need to get $_SESSION["uid"] from the logged in user from within modx,
how do i do that?
thank you
-
- 3 Posts
anyone have any idea?
or at least, how do i retrieve the session id of the public session ,
the one not in modx?
Vanilla does it by using AJAX to call a MODx page. The MODx page contains a snippet to return the info from the SESSION that is generated when the MODx page is generated. It only works if Vanilla and MODx are on the same domain, as it gets the session file name from the session cookie, so the user on the Vanilla page has access to the same cookie. The Vanilla plugin has to be given the name of that cookie so it can get the session name from it.