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

  • SEARCH
  • Home
  • 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 9217331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:36:43+00:00 2026-06-18T02:36:43+00:00

I have two Joomla 2.5 websites, both working separately. Now I want to redirect

  • 0

I have two Joomla 2.5 websites, both working separately. Now I want to redirect a logged-in user from one page of the first website to another page in second website.

I need the second website to recognize the username and password.
(I’ve just checked that the md5-hex password of both are working together).
Users are registered to both, mean have the same username and password in both user database.
I’ve tried to use some php commands like “HTTPResponse::redirect” and some joomla components to do that but it doesn’t work.

  • 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-18T02:36:44+00:00Added an answer on June 18, 2026 at 2:36 am

    I hope you can works like this.

    When the user login in first website and from this site you have to redirect to second one.

    First when the user login in your first site,You should keep that user password and user name.
    You will get user name with $user->name object but you can’t get the password for description so should keep that in some where (in secure space).Then get those to credential and set a return url in a hidden form.

    Then the action of this hidden form submit to the second site.If the users account exist in that joomla site you can login and redirect to the given return url.

    If not it will not login to the second site.

    you can get the user details using

    $user = &JFactory::getUser();
    

    the hidden form should be like this

    The action should be second site full url.
    the $your_return_url should be second site url
    
      <form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post">
     <input type="text" tabindex="1" " value="<?php echo $user_name?>" id="username" name="username" />
    <input type="password"  value="<?php echo $password?>" id="password" name="password" />
     <input type="hidden" name="return" value="<?php echo base64_encode($your_return_url); ?>" /><?php echo JHtml::_('form.token'); ?>
        </form>
    

    Based on action you can submit this form to the second joomla site.
    But here one main thing is joomla form token If first sites token accept in second joomla site then your job Done! Otherwise you can’t achieve this.

    Hope this may help you..

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

Sidebar

Related Questions

I have two update panels on a page. And I want to update both
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes (MVC view model) which inherits from one abstract base class.
I am a beginner and working on joomla 1.5. I have two question :
Have two fields start and end, both are dates, I want to write a
I have two tables that I'm querying from. In one table, there are fields
I have developed two plugins for Joomla 2.5 and packed them into one package
I have this joomla site. I have two versions of it, both using the
I have two different menus in my Joomla site. One is top menu with
Have two events: $('body').mouseup(function(e){} and $('.toggle').click(function(e){} I only want one of these to trigger.

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.