문제

So I made a website and set up user registration. It's now possible to register and login correctly and encrypted. But how do I keep state of the users identity? Do I have to send POST data with every link?

EDIT: Using PHP. Users post and comment on content. Users have a public profile with links to all content.

도움이 되었습니까?

해결책

If using PHP - use $_SESSION data crossed with a $_COOKIE. This should allow you to keep track of user identity without having to pass $_POST variables all over the place - using $_POST is very insecure.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top