Joomla Automatic Login

Posted on 2009-04-24
Last Modified: 2012-05-06
Hi there,

How can I make users login automatic to my joomla webpage. Is there anyway?

I want unregistered users to be able to edit documents in the page.

A function that when my first .php is load, load it with administration privileges.

Thanks in advance..
Question by:vmorais_
    LVL 3

    Accepted Solution


    First of all you'll need to check in your MySQL-database and see what number the admin privileges has. I think you should be able to see that in the users table in the database.

    Then you can add a new user to the database. For example not_logged_in_user and set the privileges manually to admin in the database (compare to a administrator that already exist).

    Then you can paste in a login function to your first page, but instead of $_GET the username and password from a form you can simply specify the username and password in two variables. For example:

    $username = "not_logged_in_user";
    $password = "mypassword";

    You should also put that login function into a if-statement just to check if a user is already logged in, if not, log that user in

    Author Closing Comment

    Thank you..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    how to customize joomla t3 framework 5 268
    Joomla File Permissions Question 7 76
    Error in Joomla content.php 5 116
    Export Joomla articles 1 77
    Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
    First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi's my …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now