登录处理

登录处理

test的例子有一个登录demo,输入密码错误后有打印,搜索到源码

PUBLIC int websOpenAuth(int minimal)
{

        websDefineAction("login", loginServiceProc);
        websDefineAction("logout", logoutServiceProc);
}

网友是这么做

利用cookie来保护web服务器中指定的一些静态资源,具体在fileHandler的处理中验证浏览器发送过来的cookie,如果通过则返回对应的资源,如果不通过则强制跳转到登录页面。

API-TODO

https://blog.csdn.net/wanghelou123/article/details/51451521

posted @ 2019-12-27 19:58  zongzi10010  阅读(296)  评论(0编辑  收藏  举报