PHP allows the user to log in only one thinking

 
Only allows users to log in at one, because the user's uid is unique
Data Sheet zf_user_login
id uid session_id ctime status
 
Save zf_user_login landing, then queries whether the ID recorded landing in the database, and if so, whether the change
Public method a user, by determining whether the real uid is valid session_id
 

Guess you like

Origin www.cnblogs.com/wmc1125/p/11431947.html