how to code login to backend in joomla

by Eryk Perzewski   Last Updated December 06, 2017 15:10 PM

i am making my own component in joomla which provides me login through external site.

Last issue i need to solve is just login. When i just trigger onUserLogin event by:

$dispatcher->triggerEvent('onUserLogin', array($response, $options));

It works! but login me only to front-end section to joomla page.

What i have to do to login to back-end section? Is there any trick which would help me, for example manually create session and insert to db?

If not, what plugin method do i have to override?

Related Questions

403 Forbidden error for administrator login page

Updated May 31, 2017 19:10 PM

Crash Site with Login Page

Updated August 04, 2016 08:04 AM