python2.7 - 用户登陆问题(数据库用的mongoDB)
巴扎黑
巴扎黑 2017-04-25 09:01:55
0
2
513

用户在页面输入用户名跟密码跟mongoDB中的匹配页面跳转到登陆成功.那么前端页面跟数据库中的数据怎么匹配?希望会的人,给新手一个提示,不胜感激...

巴扎黑
巴扎黑

reply all(2)
PHPzhong

Use JavaScript to get the content of the front-end page
And then AJAX POST to the backend?

Ty80

Generally, post forms and sessions are used, and cookies are also used in the long term.

if session[login]=yes. redirect to xx page, xx page needs to be written by yourself, and it will be displayed only after login. If not logged in, it will jump to the login interface.

All background interfaces must determine whether to log in.
otherwise. .

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!