title: how to redirect session login url in moodle
body: <p>Moodle normally redirect to login page when session <strong>Timeout</strong>. </p>
  
  <p>Is there any option to <strong>redirect</strong> another page url instead of going to </p>
  
  <pre><code>$CFG-&gt;wwwroot.'/login/index.php'
  </code></pre>