When I upload my site to live server, I am constantly logged out of the panel within 10s to a few minutes. When the same code is on my local installation, there doesn’t seem to be an issue. I tried the solution shown here (Panel keeps logging me out - #31 by RobertC), but it doesn’t seem to be working for me.
Here is the code snippet I added to my config.php file
I am using different user accounts to control access to certain parts of the site. Would that affect this at all? Also wondering what would happen if I remove the if statement, since none of the others bits of code in the config.php file seem to have this. Thanks in advance!
So far the solution in that support article seems to be working! I changed the title to be a bit more descriptive for anyone that might come across the same problem. Thanks!