session_destroy getting error in Opera

I had to reinstall my Windows 7 OS two days ago. After reinstalling all the browsers, my application still works fine with IE, Chrome, and Firefox. But Opera now complains that it's getting an error with session_destroy(). I'm using XAMPP which uses the Apache Web Server.

Anyone know why this might be happening? Opera had no problems prior to my OS install, and I don't understand why this would start happening now. I googled this and found that some other people are having the same problem, but not many. Some even complain this happens with IE and Chrome as well, although I'm not having that problem.

What could be causing this, anyone know?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Please show us the actual error message.  I don't believe that Opera or any other browser knows anything about session_destroy() since that is executed in PHP on the server and not in the browser.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
elepilAuthor Commented:

This is from php_error_log.

PHP Warning:  session_destroy(): Session object destruction failed in C:\xampp\htdocs\newdimension\public\login.php on line 27

Open in new window

Line 27 simply says:


Open in new window

Even though it is stated as Warning, it might as well be an error because it's preventing my application from moving on to the next page; instead, it just stays at the login page. What's weird is that I just tried it right now, it actually went through ONCE. I logged out, tried again, and couldn't get past this again. Something flakey is going on here, and I don't know what.
Dave BaldwinFixer of ProblemsCommented:
The only thing that immediately comes to mind is that you have to have session_start() first so you can identify the session that is to be destroyed.  Anything you do that changes the identity of the session will interfere also because session_destroy is based on the identity of the current session.

Create simple demo pages that shows the problem and let us look at that.
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

elepilAuthor Commented:
Dave, this code has session_start() a few lines prior. This same code was working perfectly with Opera prior to the OS install. Thanks anyway for responding.
Ray PaseurCommented:
How PHP sessions work.  This is the short version.  It always works.  It avoids complexity and edge cases; you should too.

A page that looks simple, but actually contains a great deal of wisdom because if you do what it says you will get quick and accurate help!

This is not the same as trying to describe code.  The reason we need to see the exact actual code is so that we can copy it, install it on our machines, run it and examine logs as we modify it to cause it to reveal its inner workings.
elepilAuthor Commented:
I was going through the Programs and Features and noticed that somehow, Opera was installed twice. I'm not sure how that happened, but one was labeled as Opera, the other as Opera Stable. I uninstalled both and reinstalled, making sure there was only one install this time, and the problem disappeared.
Dave BaldwinFixer of ProblemsCommented:
Interesting.  I have two versions of Opera installed on this machine (ver 12 and ver 28) without any problems so far.  Glad you got it sorted though.
elepilAuthor Commented:
Ray, with the number of posts I've made to this forum (and I do others as well), I'm an expert on SSCCE. :)

I take great pains to provide short code snippets laser-targeting the issue I'm having. I am keenly aware that the more convoluted my example is, the less willing people will be to help me. But in this case, I just know it's not the code. The message is complaining about session_destroy(). What more can I provide?

Anyway, the problem has been resolved, thanks for responding though. Sorry I've already distributed points.
Ray PaseurCommented:
Not worried about the points -- just looking to help you find the best way to frame the questions.
elepilAuthor Commented:
Thanks, Ray, you're a good man. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.