Jump to content

Problems with login in Admin


Recommended Posts

I installed Presta today and I trying to set up my shop, but the thing is that I can't use the Admin panel without having to login everytime I press some of its buttons. Also if I do any change after pressing Save the login page shows up.

At first I thought it could be related with my use of Opera somehow, but I tested it on Firefox and Safari and still does the same thing.

Here some facts about my install:
- I have my Presta under a /shop folder
- The site root is password protected (but I tryied without it and it does the same)
- register_globals was OFF since before the installation

I did the installation twice but it didn't help.

Any suggestions/instructions to solve this will be very appreciated!

Link to comment
Share on other sites

Cookies are enables in Opera, Firefox and Safari.
Previously I also installed Magento and Zen Cart to the same folder and I didn't have any problems like this on their admin panels, they worked fine.
I like Prestashop a lot, but this thing makes me crazy.

Link to comment
Share on other sites

Is definitely something to do with sessions, because everything worked fine in installation.
My host server filled all the required PHP configurations during installation but now that I check the Presta wiki instructions on this page
http://www.prestashop.com/wiki/System_administrator_guide/#Safe_Mode_configuration

and my phpinfo.php tells me this:

safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value

Could this affect on the way sessions works in the admin panel?

The admin has been tested on MacOS/Win with Opera, Firefox and Safari and IE

Link to comment
Share on other sites

Did anybody else have problems with Back Office redirecting to login all the time?
I really want to get this problem solved, because everything else is working fine!

I found this bug but still don't know if it was solved or not, surprisingly I'm using the
same hosting as this guys..

http://www.prestashop.com/bug_tracker/view/3539/

is it then a Prestashop problem or hosting problem?

Link to comment
Share on other sites

I contacted my host, and the reason for this problem is the use of clustered/grid hosting. Prestashop has been coded in a way is not supported by this techonology.

Anyway they said that it is possible to fix this setting the sessions to be saved eg. in my root directory.
So I know that I can set this in my php.ini file, but where else I have to change the path to session directory
in order to have everything working fine in both Front Office and Back Office?

I'll really appreciate your help on this.

Link to comment
Share on other sites

  • 4 months later...

Here is the solution:
http://php.dtbaker.com.au/post/prestashop.html

Simple fix.

In the file "prestashop/classes/Cookie.php" go down to line 50 where you see:

$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);
and change it too:

$this->_expire = isset($expire) ? intval($expire) : (time() + 3600);
This is because (some versions of) Internet Explorer seem to reject cookies that have large expiry times.

Link to comment
Share on other sites

×
×
  • Create New...