Session Destroy Error in Chrome

  • Ben Cheek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #1 by Ben Cheek
Session Destroy Error in Chrome was created by Ben Cheek
When logging out of my Joomla 1.5.25/Joomdle 0.7 site (with JomSocial 2.4.2), I see the following error in Chrome (Ubuntu 11.10/Chrome 17 & Win 7/Chrome 16) for a few seconds before logging out successfully:

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /public_html/plugins/user/joomdlehooks.php on line 54

I haven't seen this error in other browsers, but this could be due to Chrome's speed (over FF).

My version of joomdlehooks has been modified to deal with the JomSocial bug, but the changed lines are before line 54. See: www.joomdle.com/en/forum/feature-request...pe-in-jomsocial#7159

Any ideas?

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

More
14 years 2 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Session Destroy Error in Chrome
Hi.

This is warning, maybe that is why it has not been reported before: most people run with warnings off.

Anyway, I guess you can fix it by adding @ to that line, leaving:
@session_destroy ();

That would remove any output from that function.

Please test and let us know, so I can implement the change for next release.

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

  • Ben Cheek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #3 by Ben Cheek
Replied by Ben Cheek on topic Re: Session Destroy Error in Chrome
Antonio, do you mean that most people run with PHP warnings off, or something else?

I've implemented your fix and it removes the message. I haven't noticed any additional problems so I think this is fixed -- at least in the sense that the problem isn't visible anymore.

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

More
14 years 2 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Session Destroy Error in Chrome
Thanks for letting us know it works.

Yes, I talked about PHP.

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