-
Notifications
You must be signed in to change notification settings - Fork 86
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
引入radis错误!!! #185
Comments
你可以看下这个关于安装和配置中间件的文档。http://fex.baidu.com/yog2/docs/features/middleware.html#中间件管理 还有就是你的问题,我认为是你这个session.js放置的目录不对。如果是针对某个app的配置,可以放到app的server目录下。 |
放在server是不起作用的,而且插件是通过 yog2 plugin install session 来安装的,安装后会在yog/conf/plugins目录下生成session.js。
我集成了radis,然后出现了以上描述的问题。 |
解决了,我是这么干的。 在session插件里稍微做下修改。
对外抛出的session
好像只有这种方式才行。 redis存储的sesstion |
赞 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
该代码在 yog/conf/plugins/session.js
但是控制台会报错。。
如何解决,是因为我引入的方式不对吗?求答案啊~~ @zhiqiang21
The text was updated successfully, but these errors were encountered: