PHP session garbage collection becoming an annoyance, i need some help to modify this behavior -


I have been facing this problem for a while, I do not know at all if this is a problem but I am very confident That's it, I remember that the set of sessions has ended after 1 week, but when I go to my site after a few hours of inactivity, I remember that the session has ended, Checking TMP DIR and Session Flat File, me Does it seem that some PHP session trash collector goes on and on again every now and then, but I do not want to delete these sessions, which are meant to be preserved for a week, how is this behavior modified?

You are confusing two things.

  • A "Remember Me" mechanism does not rely on sessions, it depends on a cookie that stores the credentials used to start the session. In this case, you have to set up a cookie so that one week is final. See.
  • If you want to extend the life of the session, you have to increase the lifetime of both session cookies for one week and delay the waste collection. It has to change.

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -