Setting a Cookie on Login
Say my domain was www.example.com and I was setting a user's login cookie if their login credentials are correct.
How would I set the cookie? I've done the same thing with sessions and cookies on my localhost and worked perfectly fine. But when I uploaded my files on to a web server with an actual domain, it doesn't seem to work?
Cookie path: "/"
Cookie domain: ".example.com"
Thanks,
链接地址: http://www.djcxy.com/p/44898.html上一篇: 如何使Cookie可用于域中的所有路径?
下一篇: 在登录时设置Cookie