Skip to Content Skip to Menu

Is disabling Joomla cache the safe way to avoid "session expiration" and "cookies" issues on registration?

  • Scratch87
  • Scratch87
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #248085 by Scratch87
Folks,
I have poured through the threads about session expiration and cookies issues on registration. Having recently implemented CB and CB subs, it is the first time I had to deal with these issues. It sounds as if I disable the Joomla cache, which I have experimented with, the problems will go away? Would this be the safe workaround? We get about 1 to 2 thousand visitors a day -- not that that is a whole lot -- However, we will likely see a massive amount of registrations in the next week with our new subs service. I can dive into long term cache stuff later... The last thing I want is tons of registration complains... Running Joomla 2.5 latest with latest CB and CB subs.... Some reinforcement of my approach would boost my confidence here... :ohmy:
Kind regards,
-- Scratch

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248089 by krileon
Joomla cache doesn't cache extensions unless it's told to by the extension. So no it shouldn't cause problems. Joomla cache out of the box basically only does anything for Modules and for Joomla core components.

What generally causes that error is the user going to registration, sitting too long, and the spoof cookie expires. Another way for this to happen is the user goes to registration, closes their browse, comes back with it open to recent pages and trys to registers. There's a few more scenarios that it could happen, which all fall under user error in most cases. The user having browser cookies shut off or blocked can also cause it as there's no way to associate the user with a session otherwise. On rare occasions it's due to a fatal PHP error on your install, but you should see those with debugging enabled and maximum error reporting set.

Are you having issues with this currently or just trying to take precautions to avoid it?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Scratch87

Please Log in or Create an account to join the conversation.

  • Scratch87
  • Scratch87
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
10 years 2 months ago - 10 years 2 months ago #248093 by Scratch87
Thank you for the fast reply. Yes, I have been having folks register dummy accounts and several of them have experienced this issue. I turned off Joomla system cache and so far, no errors. Two of the folks basically started the registration process as I was talking with them so I don't think they lingered too long on the form. I have global Joomla cache settings turned off (mostly because it seemed folks using Chrome had to wait forever to get new content), but I do use the Joomla system cache plugin. If that helps. Appreciate any advice.

If it helps, here is the ink to our regisration page: www.acrossross.com/index.php/register
Last edit: 10 years 2 months ago by Scratch87. Reason: Adding registration URL

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248097 by krileon
Basically any page with an HTML form shouldn't cache. However, Joomla cache basically caches the entire buffer. As far as I am aware it should not cache extension pages unless told to, but I guess it's possible for it to ignore that and cache anyway. If it does then it caches the buffer to a cache file. When you visit the page again that cache file is loaded, but it'll have all the HTML of the previous time it was viewed. This results in the spoof check values being invalid, which will cause the spoof check error. It's normally best to just keep it off unless you've very high traffic and even then it's better to just have highly targeted caching as only static pages should ever be cached (excluding forms). So in this case since Joomla is caching it I suggest leaving the cache off and see if you have any further problems.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Scratch87

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum