Joomla Automatic Login

Posted on 2009-04-24
Medium Priority
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_

Accepted Solution

GodDoesntExist earned 2000 total points
ID: 24233689

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

ID: 31574484
Thank you..

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, 8 hours left to enroll

831 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