Giter Site home page Giter Site logo

Comments (4)

bunglegrind avatar bunglegrind commented on May 8, 2024

maybe this is related:

#6157

from codeigniter.

El-Tommy avatar El-Tommy commented on May 8, 2024

From what I understand the CI does its own session lock treatment, correct?

Can I then use PHP's default session_start() instead of using the CI or will that cause a problem?

I only set sessions at login time, otherwise I don't change them.

from codeigniter.

bunglegrind avatar bunglegrind commented on May 8, 2024

Correct, the problem is the fixed long interval (1 second). Default interval for the PHPRedis driver is 20 ms...
You have two alternatives:

  1. Extend (or edit...) the CI Session redis driver in order to customize the lock polling timeout to a more reasonable smaller value (in case, follow what I wrote in #6157 and substitute sleep with usleep)
  2. dealing with sessions outside the framework. That is, use $_SESSION, the phpredis settings in php.ini etc..

from codeigniter.

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.