This works great for 3.4 Joomla. How do I keep the user logged in? i.e. "remember"?
JPluginHelper::importPlugin('user'); $options = array(); $options['action'] = 'core.login.site'; $response->username = "user_name_here"; $result = $app->triggerEvent('onUserLogin', array((array)$response, $options));
$options['remember'] = TRUE doesn't seem to work. Does anyone know if this particular API call supports a remember me option. Users stay logged in but are immediately logged out when the browser window is closed.
i was able to get remember me working by following tips at this site to fix session.cookie lifetime on the server settings: http://forum.joomla.org/viewtopic.php?f=470&t=457307&start=30
added following to index.php in joomla - hopefully helps others out.