关于用户登录后,用户信息保存的有关问题

WBOY
Release: 2016-06-13 11:32:22
Original
993 people have browsed it

关于用户登录后,用户信息保存的问题
网上很多资料都是说登录成功后,用$_SESSION['username']保存用户的信息,然后读这个值来判断用户是否登录,那如果我直接写值进去,那就是显示登录了吗?

请问保存信息这块怎么做保证安全性呢?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!