Page 1 of 1

keep getting logged out of admin

Posted: Wed Dec 30, 2009 11:08 pm
by thinkingforward
Hi all,

Every time I click on another window or tab and then return to the opencart admin, I have to re-login.

Anyone else having this problem?

Thanks

Re: keep getting logged out of admin

Posted: Wed Dec 30, 2009 11:51 pm
by i2Paq
I've seen a topic about this not so long ago.
Just use the search, I hope you find it.

Re: keep getting logged out of admin

Posted: Thu Dec 31, 2009 2:25 am
by BarneyDay
Hi, I recently had this problem.

I got round it by copying the php.ini file from the root folder into the admin folder and uploading it.

Rightly or wrongly, it did the trick for me!!

Re: keep getting logged out of admin

Posted: Sat Oct 08, 2011 1:50 pm
by readytechusa
i2Paq wrote:I've seen a topic about this not so long ago.
Just use the search, I hope you find it.
Not helpful. I've been searching, and since there are quite a few threads with this issue and apparently(so far) no fix in any of them, I'm just going around in circles.

If you have a solution, please let us know where we can find it. Or simply sticky a thread with possible solutions for this issue. Thanks -John

Re: keep getting logged out of admin

Posted: Sat Oct 08, 2011 7:09 pm
by i2Paq
What have you tried?

It has to do with the session timeout your hoster has set.

Sometimes you can overrule this and there is a topic about this, just use the search.
If this fix found in that topic does not work you have to contact your hoster on this.

Re: keep getting logged out of admin

Posted: Thu Oct 13, 2011 1:42 am
by readytechusa
i2Paq wrote:What have you tried?

It has to do with the session timeout your hoster has set.

Sometimes you can overrule this and there is a topic about this, just use the search.
If this fix found in that topic does not work you have to contact your hoster on this.
Thank you for your response.
I contacted my host iPage, they said their session timeout was set to 24minutes. Which didn't make sense because I'd get thrown out in less than 4 minutes in some instances. They weren't any help with this issue, so I kept searching the forum here. I was able to find the fix, as you said, I did find a way to overrule it and I'll paste my earlier post on it. Thanks again. -John
readytechusa wrote:The recommended fix: session.gc.maxlifetime = 12000000 did not work for me. (1.5.1.3)

I found this advice from a different thread and it worked, so just passing it on, hope it helps for anyone else that happens to be searching for this topic.
readytechusa.com

:::I used this with success:::

Code: Select all

<script type="text/javascript">
function pingServer() {
$.ajax({ url: location.href });
}
$(document).ready(function() {
setInterval('pingServer()', 20000);
});
</script>
:::Put it in admin/view/template/common/header.tpl, right :::before the closing head tag:

Code: Select all

</head>

Re: keep getting logged out of admin

Posted: Thu Feb 16, 2012 12:06 pm
by lochoe
Hye there, is there any other option, after i put that code, i still logout from admin page

when i login to admin, n click any menu/link, i'll be logout and need to login again, so i cant edit any setting, since be logout from the admin page...please help

Re: keep getting logged out of admin

Posted: Thu Feb 16, 2012 12:17 pm
by lochoe
i just turn off SEO and change .htacesss to htaccess.txt, dont know is it ok, but the web running fine..better have no seo than website not running...

Re: keep getting logged out of admin

Posted: Wed Apr 11, 2012 6:22 am
by srcleveland
has this ever been addressed??????

the logout is annoying!!!!

If it si in the hosting site, where is it so we can tell them how to fix it. if it is in the code FIX IT!!!!

Re: keep getting logged out of admin

Posted: Wed Apr 11, 2012 7:03 am
by srcleveland
I think i found the answer :)
I added the above entry to the php.ini file within the admin folder and it started working "session.gc.maxlifetime = 12000000"

please note that what is in the php.ini from the install is "session.gc_maxlifetime = 12000000"

Re: keep getting logged out of admin

Posted: Thu Apr 12, 2012 12:41 am
by fili
at yesterday i have same problem, and already solve it

it's about server issue, maybe you can contact your hosting provider to turn off
cache (facility) from your server / cpanel,

it's work.. just contact your hosting provider. to turnoff cache setting special on your hosting / cpanel

Re: keep getting logged out of admin

Posted: Tue Aug 14, 2012 6:47 am
by justinv
I have just released a free vqmod that fixes this issue: http://www.opencart.com/index.php?route ... on_id=7741

Re: keep getting logged out of admin

Posted: Wed Aug 14, 2013 6:40 am
by edze
Hi guys,

I have three opencart webshops, all v 1.5.5.1, on the same server of the same webhoster. When working in Admin, I get thrown out of Admin exactly every hour. For example, when I log in at 09:55 I get logged out at 10:00 , and when I login at 11:05 I get logged out at 12:00. So I get logged out not exactly after one hour, but exactly on the hour.

Is there a solution, please?

Kind regards,
Edze

Re: keep getting logged out of admin

Posted: Thu Oct 09, 2014 1:53 pm
by webkix
Navigate to /httpdocs/admin and edit the php.ini file.
Change the session.gc_maxlifetime value, for ex:

Code: Select all

session.gc_maxlifetime = 12000000;

Re: keep getting logged out of admin

Posted: Tue Feb 09, 2016 5:33 am
by mkp007