Home > CMS Tutorial > Empire CMS > body text

What should I do if the redirect address is wrong after logging in to Imperial CMS?

下次还敢
Release: 2024-04-16 19:27:15
Original
593 people have browsed it

Methods to solve the error of jump address after login for Imperial CMS members: Check the correctness of the jump address after login in the member group settings. Check that the login code in the login page uses the correct jump address. Check whether the template file called after successful login contains the correct jump code. Check whether the custom login plug-in contains the jump code and the address is consistent with the member group settings. Clear cache of Empire CMS.

What should I do if the redirect address is wrong after logging in to Imperial CMS?

Solution to the wrong jump address after logging in to Imperial CMS members

Problem: The jump address is wrong after logging in as an Imperial CMS member. How to solve it?

Answer:

  1. Check the member group settings

Make sure that after the member logs in, the jump The address is filled in correctly in the member group's settings. In the Imperial CMS backend, enter "Member Management" -> "Member Group Management", select the corresponding member group, and check the "Jump address after login" setting.

  1. Check login code

On the login page, check whether the login code is correct. Make sure the correct jump address is used in the login code. Typically, the login code looks like the following example:

<code class="php">// 用户登录
if ($r['result'] == 1)
{
    // 登录成功
    echo "<script>
        alert('登录成功');
        location.href = '{$return_url}';
        </script>";
    exit();
}
else
{
    // 登录失败
    echo "<script>
        alert('登录失败');
        location.href = '{$login_url}';
        </script>";
    exit();
}</code>
Copy after login
  1. Check the template file

Ensure that after successful login, the template file called contains Correct jump code. In the template file, check the following code:

<code class="html"><script>
    location.href = '{$return_url}';
</script></code>
Copy after login
  1. Check the custom login plugin

If a custom login plugin is used, check the plugin Is the code in . Make sure that the jump code is included in the plugin and that the jump address is consistent with the member group settings.

  1. Clear Cache

If none of the above steps solve the problem, please try clearing the cache of Empire CMS. In the Imperial CMS backend, go to "System Settings" -> "Other Settings" and click the "Clear Cache" button.

The above is the detailed content of What should I do if the redirect address is wrong after logging in to Imperial CMS?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!