Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:22:07+00:00 2026-06-12T17:22:07+00:00

I really need your help. I am junior Joomla! developer and also junior Android

  • 0

I really need your help. I am junior Joomla! developer and also junior Android developer. I am currently building an Android app for Joomla! site administration. So, where do I need help?

I managed without any problems to log in some user to frontend using this code:

    // Function for user login
    // return : JSON array (login : true/false; user_id : if user is loged in)
    public function login() {
        $post = JFactory::getApplication()->input;
        $result = array();
        $username = $post->get('username');
        $password = $post->get('password');

        $credentials = array("username" => $username, "password" => $password);

        $app = JFactory::getApplication('site');
        $result['login'] = $app->login($credentials);

        if($result['login']) {
            $result['user_id'] = JUserHelper::getUserId($username);
        }

        CJoomDroidHelper::postResult($result);
    }

I made component named CJoomDroid which is simple web service with JSON response for every call.

For an example, when I enter:

http://some.joomla.website/index.php?option=com_cjoomdroid&view=authetication&task=login&username=user&password=pass&format=raw

, I manage to log in user to front site panel.
So no problems there, but if I want to log in to administration panel with same user using this code:

    // Function for user login
    // return : JSON array (login : true/false; user_id : if user is loged in)
    public function login() {
        $post = JFactory::getApplication()->input;
        $result = array();
        $username = $post->get('username');
        $password = $post->get('password');

        $credentials = array("username" => $username, "password" => $password);

        $app = JFactory::getApplication('admin');
        $result['login'] = $app->login($credentials);

        if($result['login']) {
            $result['user_id'] = JUserHelper::getUserId($username);
        }

        CJoomDroidHelper::postResult($result);
    }

On this link:

http://some.joomla.website/administration/index.php?option=com_cjoomdroid&view=authetication&task=login&username=user&password=pass&format=raw

, I am getting errors. Is there any way to log in to admin panel this way?

Thanks!

Errors are like “Your session has expired; Please log in again..” etc… Android app is making call with: HttpResponse response = httpclient.execute(new HttpGet(url.toString())); , and response should be JSON object like:

{"login":true}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:22:08+00:00Added an answer on June 12, 2026 at 5:22 pm

    Automatically logging on Joomla can be very tricky.
    You should give a look to this post on google groups.
    There is a library named FrameworkOnFramework that enhance the power of Joomla and allows you to automatically login (via CLI or using a simple call) providing a very good protection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help. I'm really new to Android, developing in Eclipse with the
I really need your help for this. I am relatively new to programming and
first of all, I'm really thankful for all your help. I need just one
I Really need help in this ... I'm building an application where I need
I really need help this time - Joomla 2.5 and latest K2. I'm using
i really need your help with a CSS-Layout. I tried a few time, however
i really really need your help. I'm successfully setting up a connection to my
Afternoon all, I really need your help as this is a Nightmare! I was
hy guys, i really need your help. i've succesfully connected to ftp server via
I need your help. I have made a really clean and simple example to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.