Jump to content

Admin automatically logs me out


Recommended Posts

I have used Prestashop a few times over the past 2 years with great success. I love the product and its ease of use! But, I am having a particular problem that I cannot seem to resolve. I've tried everything in my knowledge and spent 2 days searching these forums, google and other forums for the answer, but no one really talks about this issue.

First off, I am running a Windows 2003 32-bit dedicated server through iWeb. I am currently using PHP Version 5.3.3 and IIS 6.0. I have a few others sites hosted on it, all w/ dedicated IP's. All my other installs have been on linux shared or dedicated hosting solutions. Thus, where I think the root of my issue may be.

Anyways, here is the problem:

I log into the admin section (back office) of my install and I can carom around the structure for a minute or two, but then I get kicked out and have to log back in. Or when I try to delete products, or pretty much update anything; approximately 90% of the time I get kicked immediately. I cannot function in this development stage, trying to build a shopping cart for a customer when I am having such an issue.

Please, any help would be greatly appreciated!

Link to comment
Share on other sites

i dont know if this helps anyone but, when I log in via the remote desktop and work in the admin system it works as desired. So, I'm assuming it doesn't like my IP and is a security feature. Hopefully someone can help me with this issue. Thanks!

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Yup! Exactly the same problem for me... well, my client is having the problem using a PC (FF and IE browsers) but I don't have an issue when logging into admin using my Mac running Safari and FF... anyone got any ideas because, yeah, this really does suck!

Link to comment
Share on other sites

Troy,

The thread you suggested doesn't solve the problem. The admin auto-logout problem has already been solved at least 1 week ago in the bug tracker.

For PS 1.3, a simple edit to the codes is sufficient.

File: /classes/cookie.php

Before

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd) AND (!isset($this->_content[‘remote_addr’]) OR $this->_content[‘remote_addr’] == ip2long(Tools::getRemoteAddr())))



After

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd))





If it's PS 1.4, download the 2 files in this thread post: http://www.prestashop.com/forums/viewthread/90790/P15/#380061

Then ftp and overwrite the older files. After that, go BO >> Preferences, set Check IP on the cookie to No and save.

Link to comment
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
×
×
  • Create New...