[eluser]kroguz[/eluser]
hmmm....I have the same issue here......All my browsers (Firefox, Safari, IE, Google Chrome) work except for Opera.
I think my problem is that my php server (I am using xampp [for testing]) can't read the cookies of Opera or Opera woudn't let it read the cookies.
Why am i talking about cookies? The CSRF protection in codeigniter requires cookies for it to work. The Server takes the CSRF hash from your cookies and compares it to the CSRF in the POST request.
To ensure my guess was correct (that opera wouldn't let my server read the cookies or vice vera) and that problem was not made by Codeigniter, I created a new directory with one index.php file. (The content was hosted on my xampp server)
The content was:
Code:
<?php
$name = 'whatisyourproblemopera';
setcookie('name',$name,time() + (86400* 7));
print_r($_COOKIE);
?>
(I had to refresh the page twice, because otherwise i wouldn't have gotten the newly set cookie.)
The cookie was created in ALL Browsers even Opera, but when I tried to print the content of the $_COOKIE, I get nothing from Opera........FF, Chrome, Safari, IE returned the content of the cookie, but Opera didn't.
The result was that was returned from all browsers except opera was "Array ( [name] => whatisyourproblemopera )"
So,.....
EDIT: I just uploaded the same script to my website (domain) and this time Opera returned the content of the Cookie
Seems like my locally hosted server can't read the cookies of Opera or Opera wouldn't let it......Or it could also be that Opera doesn't return cookies that aren't stored in domains ^^..........
Example:
Cookie Name - Cookie Path - Site name => Opera Result
Cookie1 - "/" - localhost => None (cookie is created, but content not returned)
Cookie2 - "/" - 12.0.0.2 => None (cookie is created, but content not returned)
Cookie3 - "/" - example.com => true (cookie is created and its content is returned)
xD....it's a funny world
EDIT2: well that's awkward, I pressed some random buttons and then clicked 5 ties the F5 button the opera return the content of the cookies on my localhost and ip address :d
What's this freaking problem.......It's killing me......