The DedeCms member successfully logs on and jumps to the logon page. I used the sp1 version of dedecms5.7 and integrated Discuz + UChome. All three of them communicated successfully. Then, when I tested the synchronous logon and exit, I found that the dede member was successfully logged on, but immediately jumped to the logon page, that is, the member center cannot be accessed, but both Discuz and UChome can be accessed. I use the same user name and password to log on, and I am prompted that the logon is successful. how can I solve this problem!
Reply to discussion (solution)
Do not set the redirection url
Yes, the source file has not been changed, pointing to index. php
Check whether the cookie scope settings are correct.
Http://www.discuz.net/thread-466490-1-1.html
Session. cookie_path =/, do you want to say this? This should be configured in this way. No problem
It may be a BOM problem.
Is that what you want to say? This should be configured in this way. No problem
First, you can find a piece of code in/dede/login. php. you can find "successfully logged on, switching to the management homepage", and then change the corresponding code to this,
If ($ res = 1)
{
$ CuserLogin-> keepUser ();
If (! Empty ($ gotopage ))
{
ShowMsg ('successfully logged on, switching to the management homepage! ', $ Gotopage );
Exit ();
}
Else
{
ShowMsg ('Congratulations, you have successfully logged on. you are switching to the management homepage! ', "Index. php ");
Exit ();
}
}
Do you think it is written like this? If not;
Search for it in/dede/templets/login.htm
Then see if there is such a sentence below If not, add the file, or modify the file to be written in this way. Then log on to the system.
Do you think it is written like this? If not;
Search for it in/dede/templets/login.htm
Then see if there is such a sentence below, If there is no, the repair of the real world http://www.xzsj8.com to add, or not this is written in this way, changed to this. Then log on to the system.
UTF-8 version of all php files, if you modify improperly, there will be a BOM file header, resulting in failure to send cookie upon login.
Directory, the file name may be the same. check if the link Library has a problem.
Cookie. check whether the service time is inconsistent.
Dede is not very easy to use.
I am using dedecms5.7 sp1 and integrated Discuz + UChome. All three of them are successfully communicated. Then, when I tested the synchronous logon and exit, I found that the dede member was successfully logged on, but immediately jumped to the logon page, that is, the member center cannot be accessed, but both Discuz and UChome can be accessed. I use the same user name and password to log on, and I am prompted that the logon is successful. how can I solve this problem!
In the background: System-system basic parameters-core settings-domain name for cross-origin cookie sharing (for example, .dedecms.com): Check whether your current website domain is located. if your current website is localhost, however, if you set it to burnme.cn, you will be redirected to the login page after the front-end login is successful. you can change it to the current domain name or leave it blank.