Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前后端分离 Nodejs作为Webserver 转发请求给Tomcat | jianqiao0313 #62

Open
jianqiao0313 opened this issue May 13, 2020 · 0 comments

Comments

@jianqiao0313
Copy link
Owner

https://lvjianqiao.top/2017/04/25/%E5%89%8D%E5%90%8E%E7%AB%AF%E5%88%86%E7%A6%BB-Nodejs%E4%BD%9C%E4%B8%BAWebserver-%E8%BD%AC%E5%8F%91%E8%AF%B7%E6%B1%82%E7%BB%99Tomcat/

项目环境我前端框架用的是Angular 1.5.8,Nodejs + express。后台用的是Tomcat,提供接口。 所有通讯都是通过get、post请求的方式。 问题遇到的很大的一个坑:如何判断用户是否登录? 解决方法有两种方式判断用户是否登录: 一、设置请求的cookie里面的JSESSIONID 二、跟后台沟通好,设置一个token,每次请求都发送token 我们项目的流程是先登录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant