Jump to content
Psytanium

Add "Keep me logged in" on login page

Recommended Posts

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.

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×