Hi guys,
I have a requirement to automatically log a user in after they register using webloginpe.
My approach so far (which is failing) was to:
Copy the Login Function to LoginReg (passing in the username and password)
In the snippet call I would then simply call:
$wlpe->LoginReg(’simple’, $id, $username, $password);
Doing this seems to create the session, however when I redirect to any other page onthe site the session is then blanked?!? Having looked at the session in detail it appears when I login by hand using webloginpe, this stuff is getting set:
[modx.session.created.time] => number[webUsrConfigSet] => Array ( ) [mgrUsrConfigSet] => Array ( )
However if I try logging in using the approach above, these don’t seem to get set, and I think this is what is causing the parser on the subsequent page to kill the session?
Any ideas?
J