Skip to Content Skip to Menu

CB Login Module forgets user on home page

10 years 6 months ago #243910 by lachmanski
CB Login Module forgets user on home page was created by lachmanski
When a user logs into my site, the CB "login" module correctly changes to the "logout" state on most pages of my website. On the home page however, the module always shows the login state, even if a user is already logged in. Moving from any sub-page, to the home page, to another sub-page reveals that the user is constantly logged in while navigating the site. You may view the site at NYBoatingClub.com

I submitted a support ticket about 1 week ago. For some reason however, when I attempt to access the support system of your site, I receive an access denied error. I guess the ticket never went through...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #243923 by krileon
Replied by krileon on topic CB Login Module forgets user on home page
Joomla version? CB version? Do you have caching enabled? If you do disable it and purge all cache then retest. Do you have 3rd party SEF enabled? If you do disable it and retest. The only reason for it to do that is module caching or page caching or something on your home page is messing with the user session object. It's possible a 3rd party Joomla extension is messing with the session user object and to confirm you'll need to disable 3rd party extensions 1 by 1 until the issue resolves (usually Joomla system or user plugin that's doing this).


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.

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

10 years 6 months ago - 10 years 6 months ago #243972 by lachmanski
Replied by lachmanski on topic CB Login Module forgets user on home page
Thanks for your response. I'm using Joomla 2.5.19 and CB Pro 1.9.1. Once I disabled the system cache, the problem was resolved. I'm not using any other caching components or any SEF components.

Is there any way to use to the login modules with the system cache enabled?

Edit:

With Caching enabled, doing a hard refresh on the home page causes things to show properly after login, but my users won't know to do that. It is odd that caching only affects the home page and nothing else...
Last edit: 10 years 6 months ago by lachmanski.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #243974 by krileon
Replied by krileon on topic CB Login Module forgets user on home page
Best I can suggest if caching is causing the problem is to edit your CB Login modules within Extensions > Module Manager and set "Caching" to "No caching". Aside from that there's nothing more that can be done as caching is doing its intended purpose. What it does is grabs the buffer data, stores it to a cache file, then on re-display it first checks if a cache file exists and is within the cache duration, if one does exist then it opens it and displays its contents instead of doing normal rendering. Joomla however allows this to be enabled/disabled on a module by module basis, but I don't know how well that works.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum