求问网站个页面间切换时的保持登入是怎么实现的啊?
如果是存储cookiede的话,是存储用户名和密码?那样的话会不会不安全啊?
How is the website kept logged in implemented? - PHP Chinese website Q&A - How is the website kept logged in implemented? - PHP Chinese website Q&A
Take a look around and learn .
一般都是后台通过session校验的,登陆完以后,后台会在cookie里面加一个http-only的sessionId,每次跳转,后台会有一个拦截器之类的东西,检查session是否存在,是否过期
How is the website kept logged in implemented? - PHP Chinese website Q&A - How is the website kept logged in implemented? - PHP Chinese website Q&A
Take a look around and learn .
一般都是后台通过session校验的,登陆完以后,后台会在cookie里面加一个http-only的sessionId,每次跳转,后台会有一个拦截器之类的东西,检查session是否存在,是否过期