kers7754 Posted September 10, 2012 Share Posted September 10, 2012 I built a joomla 2.5 module that correctly integrates an AJAX login. It does this all through AJAX requests and is really smooth. It uses mootools ajax request to call the validateLogin API. Then onComplete, it does another ajax request to do the autoauth. The autoauth correctly sets the PHP session variables and the WHMCS correctly believes I am logged in. But from Joomla!, I can't read those $_SESSION variables. After a ton of research, it turns out the Joomla uses their own database session state. Does anyone know how I can read the session variables that are set in autoauth in Joomla? Thanks, --Jeff 0 Quote Link to comment Share on other sites More sharing options...
kers7754 Posted September 10, 2012 Author Share Posted September 10, 2012 I decided not to use session on the Joomla side and I got this to work. What I do is on the Joomla module, I call ajax functions to get session outside of joomla (WHMCS session) and it is working well. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted September 11, 2012 Share Posted September 11, 2012 Can you PM me your site so I can see it? 0 Quote Link to comment Share on other sites More sharing options...
kers7754 Posted September 11, 2012 Author Share Posted September 11, 2012 My site is doory.com and the login is located on the right sidebar Try this... log in with a random username and password log in with this test account: email: test@test.com password: test 0 Quote Link to comment Share on other sites More sharing options...
kers7754 Posted September 11, 2012 Author Share Posted September 11, 2012 you can do this... after the autoauth is successful, point your browser to a php page with the following php script that will print out the entire session array: <? session_start(); echo("<pre>" . print_r($_SESSION) . "</pre>"); ?> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.