Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Login Issues with Chrome and Joomla 3.6.2

  • micheleq
  • micheleq
  • OFFLINE
  • Posts: 144
  • Thanks: 22
  • Karma: 6
8 years 3 weeks ago #286753 by micheleq
Hi
I wrote about this earlier, but I didn't explore it deeper because it wasn't a pressing issue. It's not an urgent issue, but I'll need to solve it for my next upgrade.

Somehow, there is an issue with Chrome showing the user's login status, particularly with the integration with Kunena.
  • In the CB profile, if I'm logged in with Chrome, and look at my profile it shows me green (logged in). At the same time, others see me as red (not logged in).
  • If I login with Firefox, it shows me logged in for me and for other users.
  • In Kunena 5 (& CB 2.0.15) which has the option to set also as invisible, away, busy, it works fine in Firefox, but in Chrome it shows me as offline, even to me.
  • In the "Members Online" in Kunena, if I'm logged in with Chrome (Super Admin) it shows me as a guest. If I'm in Firefox it shows fine. In the attachment from my test site I'm logged in with two super user accounts, one in Chrome and "Tomas" in Firefox. No one else is online as the site is closed.


I've also tried to connect the two fields (Kunena & CB online status) but it hasn't worked (I'm selecting Kunena 3.x in the pull down because there isn't a 5.x option in the CB Forums plugin). The fields are Show online = onlinestatus

My live site has CB 2.0.14 and Kunena 4.0.11 and the same problem persists.

However there's no functionality issues in navigating or publishing on the site, front or back end, and I don't get logged out without wanting to either while on chrome.

On my live site I have Rockettheme.com template Clarion (Gantry 4) and on the test site I have RocketTheme.com template Xenon (Gantry 5).

I noticed these issues when I upgraded Joomla from 3.6.0 to 3.6.2 on my live site. I didn't catch it in testing. I have been upgrading and migrating since both CB and Kunena were in early 1 versions.

Any help will be very much appreciated.
Thank you,
Tomás
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 weeks ago #286784 by krileon
Replied by krileon on topic Login Issues with Chrome and Joomla 3.6.2
The online status field and CB Online module are entirely based off your session existing in _sessions. Browser can have no affect on such a server side check unless it's a problem in Joomla it self when the session is established. My guess is your session isn't working right in Joomla it self as CB will ignore guest sessions when doing this check. Try logging in with Chrome then navigate to _sessions and check the session associated with your userid as the "guest" column should be 0; if it's 1 then CB won't see you as online as Joomla has that session marked as a guest.


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: micheleq

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

  • micheleq
  • micheleq
  • OFFLINE
  • Posts: 144
  • Thanks: 22
  • Karma: 6
8 years 2 weeks ago #286816 by micheleq
Replied by micheleq on topic Login Issues with Chrome and Joomla 3.6.2
I tested and tested several different ways and I did't always get the same result, so I'm not sure what the issue was (still is??), but in the end here is what I found.

On the test site with CB 2.0.15 and Kunena 5
- I had the forum offline, but since I was logging in as Super Admin, I still saw it. The results I posted were with the forum offline.
- I tested with the forum online and the site online as well, and the issue was not present on either Chrome or Firefox.
- In the session table both users showed fine and not as guests.
- I noticed that the user that was not showing had in the Kunena Users table, "Show Online" parameter as "0". Once I put the forum online, that user was listed under "Members Online" as "Hidden User". That is what prompted me to look.

On the live site with CB 2.0.14 and Kunena 4.0.11
- I opened the Chrome browser and went to my profile page
- I opened phpMyAdmin in a new browser tab, when to the sessions table and looked for my user.
- There was NO Session for my user. Even after clicking around a bit, and being clearly logged in.
- I singed in on Firefox with a different user, looked at the Sessions table and there it was, showing OK, not as guest either.
- The user signed in in Chrome, still not showing. So I log out and in again.
- From phpMyAdmin, I ran "Repair Table" for the Sessions table.
- Now the session for the Chrome user showed up, as it should.

What happened, I don't know, but I'm posting it here for anybody else with similar issues.

Now that this is *hopefully* resolved, I'd like to show the Kunena online status (Online, away, busy, invisible, offline) on the Profile page and on the member list. To do that, can I create a new CB field and link it to the Kunena field, then hide the onlinestatus in CB and replace it with the new field? But would CB pick up the changes when Kunena updates?

Thank you,
Tomás

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 weeks ago #286832 by krileon
Replied by krileon on topic Login Issues with Chrome and Joomla 3.6.2

I'd like to show the Kunena online status (Online, away, busy, invisible, offline) on the Profile page and on the member list. To do that, can I create a new CB field and link it to the Kunena field, then hide the onlinestatus in CB and replace it with the new field? But would CB pick up the changes when Kunena updates?

We don't have a field to display kunena online status on CBs profile. The field mapping allows you to update the kunena profile values from CBs profile (1 way). The Forum Status fieldtype only displays post count, karma, rank, and thank yous; it has no mode for online status. So you'd probably need to use a Code field and write the PHP to output the online status profile field from kunena if possible.


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: micheleq

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

  • micheleq
  • micheleq
  • OFFLINE
  • Posts: 144
  • Thanks: 22
  • Karma: 6
8 years 1 week ago #286988 by micheleq
Replied by micheleq on topic Login Issues with Chrome and Joomla 3.6.2
Hi,

I didn't want to leave this in limbo, so I've tested it many different ways until I've been able to reproduce the error.

It seems that it is a session glitch with Joomla, and it happens both in Chrome and Firefox. It wasn't happening at first in Firefox because I had set it to delete cookies on exit. Once I kept the cookies, the issue showed up.

So here's how I get to the issue:
- Set browser settings so that cookies are not deleted on exit.
- Log into the site, navigate and then close the browser without clicking on Logout.
- Let some time go by, enough for the session to expire. I set a 5 min session timeout under Global settings to test, it's normally at 30 min.
- Open the browser and go to the site, and I'm automatically logged in.

Consequences:
- Session table does NOT have a session with my user ID (there is a guest session with user ID=0 and guest=1)
- My CB profile shows me as offline.
- I can still navigate the site (which is members only and I need to be signed in as a registered member to see) without an apparent problem.

If I click on log out and log in again, then the session with my user id shows up in the tables and I show as online on the CB profile. The guest session is erased from the table.

:dry:

I've been able to reproduce this consistently.

Hoping it helps,
Tomás

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 week ago #287008 by krileon
Replied by krileon on topic Login Issues with Chrome and Joomla 3.6.2
Sounds like a bug with Joomlas remember me usage. I suggest reporting your findings on the Joomla forums. There's no telling what other bugs are created by the session being missing or incorrect session being used.


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: micheleq

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

Moderators: beatnantkrileon
Powered by Kunena Forum