[Skip to main content](#vessel-content)

#   Trouble with back button - page expires

##

- **[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")**
- [![angelcc79's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7362-angelcc79 "View angelcc79's Profile") Topic Author
- [ Offline](/forum/user/7362-angelcc79)

Less More

- Posts: 4
- Thank you received: 0
-
-
-
- [](http://www.alven.cat)
-

14 years 5 months ago -  14 years 5 months ago [\#49434](#49434) by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")  *[Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49434 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")* was created by *[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")*

Hi,

When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.

When I'm not logged in, works fine and there's no issue.

Just tried to enable/disable cache but doesn't work.

The page is '[ www.alven.cat](http://www.alven.cat)', and there's a menu called "Botiga on-line" where you can find my on-line shop.

Can anyone help me?

Thanks in advance,

Last edit: 14 years 5 months ago by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

14 years 5 months ago [\#49509](#49509) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49509 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

Hi,

I just tried on your website with Chrome and I didn't had such problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")**
- [![angelcc79's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7362-angelcc79 "View angelcc79's Profile") Topic Author
- [ Offline](/forum/user/7362-angelcc79)

Less More

- Posts: 4
- Thank you received: 0
-
-
-
- [](http://www.alven.cat)
-

14 years 5 months ago [\#49521](#49521) by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")  Replied by *[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49521 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

Hi Nicolas,

First of all, thanks for your quick response and great work with Hikashop.

If you are not logged it works properly, but when you are logged in is when give problems. To check you can follow these steps:

1-Log in as user 'test'- password 'test'
2-Enter into 'Botiga on-line'
3-Choose any of three categories
4-Browse to another page with footer paginator
5-Enter into any item
6-Then press browser back button
7-Here is where page expires and ask to refresh to update page.

Tried with Chrome, Mozilla and IE.

Thanks!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

14 years 5 months ago [\#49600](#49600) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49600 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

That's normal since you're logged in.
Here is an explanation with a solution if you want to avoid that:
[ shiflett.org/articles/how-to-avoid-page-has-expired-warnings](http://shiflett.org/articles/how-to-avoid-page-has-expired-warnings)
Basically, you need to edit the file "listing" of the view "product" of the front end via Display-&gt;Views and add such line of code:
ini_set('session.cache_limiter', 'private');

Note that it will only work if your hosting allows the use of ini_set. Otherwise, that has to be set in the php.ini of your server.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")**
- [![angelcc79's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7362-angelcc79 "View angelcc79's Profile") Topic Author
- [ Offline](/forum/user/7362-angelcc79)

Less More

- Posts: 4
- Thank you received: 0
-
-
-
- [](http://www.alven.cat)
-

14 years 5 months ago -  14 years 5 months ago [\#49649](#49649) by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")  Replied by *[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49649 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

Hello,

Tried with both solutions and still doesn't works.

Edited file product/listing.php and edited php.ini of my server as attached images.
Tried with a 'if' sentence to check if the server allows the use of ini_set and doesn't return the 'echo' error sentence.

[ ![listing&#95;php.jpg](/forum/attachment/3812) ](/forum/attachment/3812 "listing&#95;php.jpg")

[ ![php&#95;ini.jpg](/forum/attachment/3813) ](/forum/attachment/3813 "php&#95;ini.jpg")

Thanks for your time.

- [ ![listing&#95;php.jpg](/forum/attachment/3812) ](/forum/attachment/3812 "listing&#95;php.jpg") [ ](/forum/attachment/3812?download=1 "listing&#95;php.jpg")
- [ ![php&#95;ini.jpg](/forum/attachment/3813) ](/forum/attachment/3813 "php&#95;ini.jpg") [ ](/forum/attachment/3813?download=1 "php&#95;ini.jpg")

Last edit: 14 years 5 months ago by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

14 years 5 months ago [\#49738](#49738) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49738 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

Make sure that you're editing the product/listing.php of your front end template, and not another template.

Other than, that I don't have any solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")**
- [![angelcc79's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7362-angelcc79 "View angelcc79's Profile") Topic Author
- [ Offline](/forum/user/7362-angelcc79)

Less More

- Posts: 4
- Thank you received: 0
-
-
-
- [](http://www.alven.cat)
-

14 years 5 months ago -  14 years 5 months ago [\#49815](#49815) by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")  Replied by *[angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49815 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

Hi Nicolas,

Finally solved it by another way. Edited file *mywebsite*/components/com_hikashop/views/product/tmpl/cart.php and changed 'no cache' value for 'prvate_no_expire' as you can see on image below:

[ ![cart.jpg](/forum/attachment/3828) ](/forum/attachment/3828 "cart.jpg")

But now I have another problem, it works properly in Mozilla and Chrome, but doesn't work in IE.

Do you know what may be the cause?

Thanks,

- [ ![cart.jpg](/forum/attachment/3828) ](/forum/attachment/3828 "cart.jpg") [ ](/forum/attachment/3828?download=1 "cart.jpg")

Last edit: 14 years 5 months ago by [angelcc79](/forum/user/7362-angelcc79 "View angelcc79's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

14 years 5 months ago [\#49911](#49911) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trouble with back button - page expires](/forum/2-general-talk-about-hikashop/49434-trouble-with-back-button-page-expires#49911 "Hi,  When I'm logged in as a registered user, enter into a shop item and press the browser back button, it works fine, but when I go on browsing items and change current page with footer pagination bar and try to enter into the item and then press back button, the page expires and requieres to reload the page.  When I'm not logged in, works fine and there's no issue.  Just tried to enable/disable cache but doesn't work.  The page is '  www.alven.cat ', and there's a menu called &quot;Botiga on-line&quot; where you can find my on-line shop.  Can anyone help me?  Thanks in advance,")*

IE handles the cache differently than FF and chrome.

You should try to add these HTML headers too for IE:
[ www.php.net/manual/en/function.session-cache-limiter.php#86057](http://www.php.net/manual/en/function.session-cache-limiter.php#86057)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NDM0LXRyb3VibGUtd2l0aC1iYWNrLWJ1dHRvbi1wYWdlLWV4cGlyZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.162 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
