PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, September 4, 2022

[FIXED] how to redirect session login url in moodle

 September 04, 2022     authentication, moodle, php     No comments   

Issue

Moodle normally redirect to login page when session Timeout.

Is there any option to redirect another page url instead of going to

$CFG->wwwroot.'/login/index.php'

Solution

You can override the default login page by setting $CFG->alternateloginurl via the admin interface at /admin/settings.php?section=manageauths. Any redirects requiring user login will then automatically point to your custom location instead.



Answered By - Tony
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing