Jack_mcs Posted October 9, 2021 Share Posted October 9, 2021 18 hours ago, Demitry said: Your Database Optimizer add-on cleans that sessions table, right? Does it clean everything or only expired sessions? It deletes all sessions that are over X days old. The number of days is in the settings. If you have the setting too low it might delete active sessions, depending on the timeout the shops code is set to. The default number of days for sessions is 14 days. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 9, 2021 Share Posted October 9, 2021 @PsytaniumYoumay want to look at my Auto Logon addon. It is quite old and may not work for your shops version but it would solve your problem, I think. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Psytanium Posted October 9, 2021 Author Share Posted October 9, 2021 29 minutes ago, Jack_mcs said: @PsytaniumYoumay want to look at my Auto Logon addon. It is quite old and may not work for your shops version but it would solve your problem, I think. Thank you, will give it a try if what i started led me to a dead end. Link to comment Share on other sites More sharing options...
Psytanium Posted October 9, 2021 Author Share Posted October 9, 2021 Currently I'm only 1 step away, after I used Demitry addon, I only still have to add to the session file : if $_SESSION["keep_login"] == 1 { do this } else { do that } I'm sure $_SESSION["keep_login"] is stored and equal 1, but don't know why when i use it in a if statement in session.php it's not working. Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 9, 2021 Share Posted October 9, 2021 See if there is a tep_session_destroy call in your code, probably application_top. It might be deleting the session before seeing your code change. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.