Giter Site home page Giter Site logo

Workerman的session问题 about workerman HOT 4 CLOSED

walkor avatar walkor commented on May 13, 2024
Workerman的session问题

from workerman.

Comments (4)

hetao29 avatar hetao29 commented on May 13, 2024

Workerman-master/Protocols/Http.php的229行
self::sessionWriteClose();
应该注释掉,因为没有用

from workerman.

walkor avatar walkor commented on May 13, 2024

1、229 行self::sessionWriteClose();是用来保存session的,去掉后就保存不了session了
2、目前暂时不支持session_save_path的redis,memcache类型。

http协议的应用不是workerman的目标,让PHPer摆脱PHP只能用于Web开发的束缚才是workerman的主要目标。目前不会花费太多时间去完善http协议及webserver。

如果想开发http协议的应用,nginx配合fpm是非常好的选择,各种mvc框架已经非常成熟了,开发、调试、部署、运维、维护都非常简单。

from workerman.

hetao29 avatar hetao29 commented on May 13, 2024

我的意思因为代码没有session_start,所以session_close也应该没有必要

我也明白,workerman对http协议支持肯定有限,毕竟http协议细节很多,而且超级复杂。

明白你的设计定位。

在 2016年3月28日 上午11:14,walkor [email protected]写道:

1、229 行self::sessionWriteClose();是用来保存session的,去掉后就保存不了session了
2、目前暂时不支持session_save_path的redis,memcache类型。

http协议的应用不是workerman的目标,让PHPer摆脱PHP只能用于Web开发的束缚才是workerman的主要目标。目前不会花费太多时间去完善http协议及webserver。

如果想开发http协议的应用,nginx配合fpm是非常好的选择,各种mvc框架已经非常成熟了,开发、调试、部署、运维、维护都非常简单。


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#66 (comment)

from workerman.

walkor avatar walkor commented on May 13, 2024

sessionWriteClose 里面有判断是否调用了sessionStart,没有的话就直接返回了

from workerman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.