I need Auto Login - Magazine Theme

I need Auto Login - Magazine Theme

di moaid hawadi -
Numero di risposte: 2

hi 

when enter to the moodle 

this page what directly shown : moodle->index.php

but i want to use index which is exist in

: moodle->login->index.php  it's better for me

so i write this code in index.php which exist in :

moodle->index.php   :

print "<script>";
print " self.location='login/index.php';"; // Comment this line if you don't want to redirect
print "</script>";
echo"<center><img height='100' width='100%' src='15.jpg'/></center>";

 

i write it to transfer me directly to the other index.php which i need it 

when i run it , it's okey but when enter the userid and password and logged in , this message which been shown

Allegato loged_2.jpg
Media dei voti: -
In riposta a moaid hawadi

Re: I need Auto Login - Magazine Theme

di Mary Evans -
Immagine Core developers Immagine Documentation writers Immagine Peer reviewers Immagine Plugin developers Immagine Testers

Why go to all that trouble when you can set your site to take you to the LOGIN page automatically.

There is a setting in Site Administration > Security > Site Policies > Force users to Login

 
 
Mary
 

 

In riposta a Mary Evans

Re: I need Auto Login - Magazine Theme

di Mary Cooch -
Immagine Documentation writers Immagine Moodle HQ Immagine Particularly helpful Moodlers Immagine Testers Immagine Translators

Moaidsorridente I think you have asked the same question in three different forum threads and you have had the same answer (as Mary Evans gave you above) three timessorridente