Opera and PHP problem

I have a login script that works fine in IE and FireFox, but in Opera I can sometimes go to multiple pages and then log out or something or can't log in at all.

Can someone please explain why this might be happening and how I can fix it?

Here is my code for my sessions at the top of my header.

$title = 'page title';
ob_start(); // Start output buffering.
session_start(); // Initialize a session.

      

0


source to share


2 answers


Opera and PHP don't get along when it comes to cookies on IP domains. There doesn't seem to be a reason for this, but at the time of this writing, this has been the case for a bit like a year (specifically the 11 * opera version).



If you are testing locally, just switch to "localhost" (127.0.0.1 may have this problem). If you are trying to access a remote domain, you will have to access it even though the domain name is, otherwise the cookies will fail and you will not be able to log in.

+1


source


Is it possible Opera has cookies disabled? If the cookie does not exist, the browser will not be able to tell the server where you should log into the website.



0


source







All Articles