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

#   Get Invalid Token at frontend login

##

- **[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")**
- [![jansuhr's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6377.jpg)](/forum/user/6377-jansuhr "View jansuhr's Profile") Topic Author
- [ Offline](/forum/user/6377-jansuhr)

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

13 years 10 months ago [\#80416](#80416) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  *[Get Invalid Token at frontend login](/forum/2-general-talk-about-hikashop/76442-get-invalid-token-at-frontend-login#80416 "On a site I've build my customer reports that a lot of users now get &quot;Invalid token&quot; when they browse the site.  I can get the same error when trying.  1. Login at the site, on frontpage. 2. Navigate to the shop 3. When in shop it looks like I'm not logged in. 4. Products in basket isn't showed. 5. Try to login again and I get the error &quot;Invalid token&quot; 6. Refresh the browser and everything is OK.  It is hard for them to explain this to their customers.  I have cleared the Cache in Joomla. Session is handled in Database No Cache plugins are active.  Problem started to happen yesterday, nothing is changed in setup since start a month ago. Joomla 2.5.7 Hikashop 2.0  Site is   www.meradog.se  Thanks  Jan")* was created by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")*

On a site I've build my customer reports that a lot of users now get "Invalid token" when they browse the site.

I can get the same error when trying.

1. Login at the site, on frontpage.
2. Navigate to the shop
3. When in shop it looks like I'm not logged in.
4. Products in basket isn't showed.
5. Try to login again and I get the error "Invalid token"
6. Refresh the browser and everything is OK.

It is hard for them to explain this to their customers.

I have cleared the Cache in Joomla.
Session is handled in Database
No Cache plugins are active.

Problem started to happen yesterday, nothing is changed in setup since start a month ago.
Joomla 2.5.7 Hikashop 2.0

Site is [ www.meradog.se](http://www.meradog.se)

Thanks

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDQyLWdldC1pbnZhbGlkLXRva2VuLWF0LWZyb250ZW5kLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#80435](#80435) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Get Invalid Token at frontend login](/forum/2-general-talk-about-hikashop/76442-get-invalid-token-at-frontend-login#80435 "On a site I've build my customer reports that a lot of users now get &quot;Invalid token&quot; when they browse the site.  I can get the same error when trying.  1. Login at the site, on frontpage. 2. Navigate to the shop 3. When in shop it looks like I'm not logged in. 4. Products in basket isn't showed. 5. Try to login again and I get the error &quot;Invalid token&quot; 6. Refresh the browser and everything is OK.  It is hard for them to explain this to their customers.  I have cleared the Cache in Joomla. Session is handled in Database No Cache plugins are active.  Problem started to happen yesterday, nothing is changed in setup since start a month ago. Joomla 2.5.7 Hikashop 2.0  Site is   www.meradog.se  Thanks  Jan")*

Hi,

What is your session timeout ?
A token is link to the session so, if a token is invalid it means that the session has expired or is invalid.
Each time a user logout/login, his token would change.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDQyLWdldC1pbnZhbGlkLXRva2VuLWF0LWZyb250ZW5kLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")**
- [![jansuhr's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6377.jpg)](/forum/user/6377-jansuhr "View jansuhr's Profile") Topic Author
- [ Offline](/forum/user/6377-jansuhr)

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

13 years 10 months ago [\#80439](#80439) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  Replied by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")* on topic *[Get Invalid Token at frontend login](/forum/2-general-talk-about-hikashop/76442-get-invalid-token-at-frontend-login#80439 "On a site I've build my customer reports that a lot of users now get &quot;Invalid token&quot; when they browse the site.  I can get the same error when trying.  1. Login at the site, on frontpage. 2. Navigate to the shop 3. When in shop it looks like I'm not logged in. 4. Products in basket isn't showed. 5. Try to login again and I get the error &quot;Invalid token&quot; 6. Refresh the browser and everything is OK.  It is hard for them to explain this to their customers.  I have cleared the Cache in Joomla. Session is handled in Database No Cache plugins are active.  Problem started to happen yesterday, nothing is changed in setup since start a month ago. Joomla 2.5.7 Hikashop 2.0  Site is   www.meradog.se  Thanks  Jan")*

I asked my customer to check with the webhost they use and it appears that they had implemented Varnish on the server.

This line in the .htaccess file should solve the problem:
Header set Cache-Control "no-cache"

I am waiting to get this fix confirmed but I guess it can only be this since everything has worked perfectly up until yesterday when the host changed the server.

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDQyLWdldC1pbnZhbGlkLXRva2VuLWF0LWZyb250ZW5kLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")**
- [![jansuhr's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6377.jpg)](/forum/user/6377-jansuhr "View jansuhr's Profile") Topic Author
- [ Offline](/forum/user/6377-jansuhr)

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

13 years 10 months ago [\#80449](#80449) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  Replied by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")* on topic *[Get Invalid Token at frontend login](/forum/2-general-talk-about-hikashop/76442-get-invalid-token-at-frontend-login#80449 "On a site I've build my customer reports that a lot of users now get &quot;Invalid token&quot; when they browse the site.  I can get the same error when trying.  1. Login at the site, on frontpage. 2. Navigate to the shop 3. When in shop it looks like I'm not logged in. 4. Products in basket isn't showed. 5. Try to login again and I get the error &quot;Invalid token&quot; 6. Refresh the browser and everything is OK.  It is hard for them to explain this to their customers.  I have cleared the Cache in Joomla. Session is handled in Database No Cache plugins are active.  Problem started to happen yesterday, nothing is changed in setup since start a month ago. Joomla 2.5.7 Hikashop 2.0  Site is   www.meradog.se  Thanks  Jan")*

Do you know anything about this solution for Varnish:

[ massivescale.net/varnish-joomla.html](http://massivescale.net/varnish-joomla.html)

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDQyLWdldC1pbnZhbGlkLXRva2VuLWF0LWZyb250ZW5kLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 10 months ago [\#80547](#80547) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Get Invalid Token at frontend login](/forum/2-general-talk-about-hikashop/76442-get-invalid-token-at-frontend-login#80547 "On a site I've build my customer reports that a lot of users now get &quot;Invalid token&quot; when they browse the site.  I can get the same error when trying.  1. Login at the site, on frontpage. 2. Navigate to the shop 3. When in shop it looks like I'm not logged in. 4. Products in basket isn't showed. 5. Try to login again and I get the error &quot;Invalid token&quot; 6. Refresh the browser and everything is OK.  It is hard for them to explain this to their customers.  I have cleared the Cache in Joomla. Session is handled in Database No Cache plugins are active.  Problem started to happen yesterday, nothing is changed in setup since start a month ago. Joomla 2.5.7 Hikashop 2.0  Site is   www.meradog.se  Thanks  Jan")*

Varnish is a kind of caching system.
It's highly likely that it indeed comes from that.

The solution proposed by the web host is to deactivate the cache which should indeed solve the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDQyLWdldC1pbnZhbGlkLXRva2VuLWF0LWZyb250ZW5kLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.076 seconds

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

[](#top)
