{"id":14,"date":"2014-07-26T05:27:09","date_gmt":"2014-07-26T05:27:09","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=14"},"modified":"2014-07-26T05:27:09","modified_gmt":"2014-07-26T05:27:09","slug":"prestashop-1-3-backoffice-login-refresh-issue","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/prestashop-1-3-backoffice-login-refresh-issue\/","title":{"rendered":"PrestaShop 1.3 BackOffice login refresh issue"},"content":{"rendered":"<p>Took over an ecommerce project running PrestaShop 1.3.<\/p>\n<p>The BackOffice&#8217;s unexplained admin login time-out issue was driving me crazy. Tried many solutions to optimise the various settings to no avail. Finally found this solution below which finally worked.<\/p>\n<p>Solution discovered by http:\/\/www.gibni.com\/solved-prestashop-backoffice-login-refresh<\/p>\n<p>Steps here:<\/p>\n<p>In the file <strong>\u201clogin.php\u201d<\/strong> under your BackOffice\u2019s folder, on line 55, you have:<\/p>\n<p>$cookie = new Cookie(&#8216;psAdmin&#8217;, substr($_SERVER[&#8216;PHP_SELF&#8217;], strlen(__PS_BASE_URI__), -10));<\/p>\n<p>where the \u201c-10&#8243; value corresponds to the number of letters of  \u201cprestashop\u201d, set it to the number of letters of your store\u2019s  sub-directory name and your will be back in business again.<\/p>\n<p>For example:<br \/>\nif your store is located at: <strong>http:\/\/www.yourdomain.com\/store\/<\/strong><br \/>\nthe word \u201cstore\u201d contains 5 letters, so the line 55 in login.php should become:<\/p>\n<p>$cookie = new Cookie(&#8216;psAdmin&#8217;, substr($_SERVER[&#8216;PHP_SELF&#8217;], strlen(__PS_BASE_URI__), -5));<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Took over an ecommerce project running PrestaShop 1.3. The BackOffice&#8217;s unexplained admin login time-out issue was driving me crazy. Tried many solutions to optimise the various settings to no avail. Finally found this solution below which finally worked. Solution discovered by http:\/\/www.gibni.com\/solved-prestashop-backoffice-login-refresh Steps here: In the file \u201clogin.php\u201d under your BackOffice\u2019s folder, on line 55, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[104],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-ecommerce","tag-prestashop-1-3"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}