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.
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:
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.
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>
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>
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.
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!