I have some php that checks if a user is logged in and returns false, this is then passed via ajax to the browser to let the user know he needs to log in.
Works perfect in FF and the alert returns 'true' but in IE, it returns 'null' no matter what I do
// Check for logged in user
$.getJSON(baseUrl+"index.php/login/checkState", function(data) {
alert(data);
if(data==true){
dologInState();
}else{
dologOutState();
}
});
PS: the string returned from PHP is simply false
Any ideas?