nac78 Posted April 16, 2010 Share Posted April 16, 2010 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 installationI 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 More sharing options...
kdk Posted April 16, 2010 Share Posted April 16, 2010 Cookies enabled? Link to comment Share on other sites More sharing options...
nac78 Posted April 17, 2010 Author Share Posted April 17, 2010 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 More sharing options...
nac78 Posted April 17, 2010 Author Share Posted April 17, 2010 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 pagehttp://www.prestashop.com/wiki/System_administrator_guide/#Safe_Mode_configurationand my phpinfo.php tells me this: safe_mode Off Offsafe_mode_exec_dir no value no valuesafe_mode_gid Off Offsafe_mode_include_dir no value no valueCould 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 More sharing options...
nac78 Posted April 18, 2010 Author Share Posted April 18, 2010 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 thesame 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 More sharing options...
nac78 Posted April 19, 2010 Author Share Posted April 19, 2010 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 directoryin 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 More sharing options...
eddi Posted September 6, 2010 Share Posted September 6, 2010 Here is the solution:http://php.dtbaker.com.au/post/prestashop.htmlSimple 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 More sharing options...
Recommended Posts