Giter Club home page Giter Club logo

Comments (5)

colinmollenhour avatar colinmollenhour commented on June 27, 2024

The comment on that same line explains it. Also the git commit message (colinmollenhour/php-redis-session-abstract@8b94600).

from cm_redissession.

nagrgk avatar nagrgk commented on June 27, 2024

Hi @colinmollenhour

yes there is comment but our expiration has to come from cookie management or from local.xml , max lifetime. this is something hardcoded and should not be 3600*6.

this does not seem to be right setting 5hrs for it

please explain

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on June 27, 2024

The expiration is set one when the session is read, and then when the process is finished and the session is written the expiration will be set again, to the proper value. So this is just a temporary value. If it is not set at all then if the page had a fatal error the session would never expire causing it to waste storage.

from cm_redissession.

nagrgk avatar nagrgk commented on June 27, 2024

Hi @colinmollenhour ,
Thanks for your reply

as per my investigation with this session expiry, it was never set to actual value. it was set to 3600*6 always.

even in this place, I would suggest that it should be set to max_value or admin cookie value.

please check again on this because it is not working as expected.

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on June 27, 2024

It is working as expected for me.. E.g.:

127.0.0.1:6379> ttl sess_BkTaPwiWb,2c1Bh0r089gn1BlgsmlOlWq1VnJIpskQ4
(integer) 2591943

The session is written by the _writeRawSession method which definitely calls ->expire() so I don't see how this could not be working unless you have something causing your PHP process to exit ungracefully in which case session_write_close() may not be getting called, or you are using read-only. Please step through with a debugger and see if write is getting called.

from cm_redissession.

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.