Joomla Automatic Login

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..
vmorais_Asked:
Who is Participating?
 
GodDoesntExistConnect With a Mentor Commented:
Hi!

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
0
 
vmorais_Author Commented:
Thank you..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.