Some users report that they log out automatically after logon. After tracking and observation, they found that these users are all dynamic ip addresses, and the session in ecmall happens to be related to ip addresses. Therefore, they cannot find the user and fail to return to session 2, you need to log on again.
How can this problem be solved?
Modify the replicdes/libraries/session. lib. php method. This method is simple and rough. Just remove the ip address and determine it.
/*** Generate the session verification string ** @ author wj * @ param string $ session_id * @ return stirng */function gen_session_key ($ session_id) {static $ ip = ''; if ($ ip = ''){
// $ Ip = substr ($ this-> _ ip, 0, strrpos ($ this-> _ ip ,'.'));} Return sprintf ('% 08x', crc32 (! Empty ($ _ SERVER ['http _ USER_AGENT '])? $ _ SERVER ['http _ USER_AGENT ']. ROOT_PATH. $ ip. $ session_id: ROOT_PATH. $ ip. $ session_id ));}
Haha, the world is quiet!
Ecmall automatically exits after logon. Solution