After PHP login, if you get the login username via cookies?
Reply to discussion (solution)
What is the landlord thinking?
Http://www.cnblogs.com/eczhou/archive/2012/03/08/2384807.html
Logging users ' logins with cookies
What is the landlord thinking?
PHP sits on the login, user name deposit cookie. Then get this cookie value from a page outside the thinkphp framework
Not in $_cookie?
After logging in, you save your username to a cookie
Then it is possible to retrieve
Not in $_cookie?
Can not be obtained from the background, if you can from the background, I will use the session. The page to fetch the cookie value is outside the thinkphp frame, can only use JS to get
After logging in, you save your username to a cookie
Then it is possible to retrieve
has been saved to a cookie. Now you want to get this cookie from a page outside the thinkphp framework. This page has no background, just HTML
alert (Document.cookie);