Forum Moderators: coopster
I have completed my project that I have been working on but when I went to test it (I was testing in Mozilla browser) in IE, the sessions didnt work. It only does not work in IE. In opera and mozilla things are fine but when I try to do this in IE it fails every time.
A browser is a browser so Im uncertain as to my a session wouldnt or couldnt work.
Wade
Maybe an answer would passing the id via url?
And browser isn't just a browser. My pages look all different in various browsers. They even differ if I save them and open.
Hope you clear it out!
Michal Cibor
I wasnt referring to the look of pages, that is why CSS is such a hassle. I was talking about how it interprets PHP.
Now, I have tried to pass a var in a session when using IE. My version of IE is just how it was when it came with the computer. I use Mozilla from the get go. Its on med security setting.
Something else I tried was removing all the checks but that didnt work either.
This is a login page so if the user and pass match, with other criteria, a session is started. But in IE, when I check the session data, the session is started but the data isnt passed.
Its odd.
See also if you can create a cookie under IE:
setcookie("test", "testing", time() + 3600);
And try passing the session id via url <a href="#?sesid=<? echo SID;?>">
and see if the session works then.
In my opinion it's the problem with cookies, however try those above. if you return any error let me know
Michal Cibor
I have the errors set to all but, Im not sure how to pass by url. Im looking at you code and Im not sure where to put it. When the page is submitted a script runs multiple functions checking login data and what not. If no errors are returned a session is started and a redirect occurs.
print '<meta http-equiv="refresh" content="5; url=http://localhost:8080/A_Cats_Desire/04022005/Admin/Admin_Home.php">';
Do I put the session data url as you have it in this redirect?
Wade
print '<meta http-equiv="refresh" content="5; url=http://localhost:8080/A_Cats_Desire/04022005/Admin/Admin_Home.php?SID='.SID.'">';
But then remeber to read it and put as session var. Try looking at www.php.net for more info on sessions. it's the best page I know.
Best regards
Michal Cibor
Ok. I did the $_GET thing and this is what it posted:
Notice: Undefined index: authorize in C:\WebDev\Work Directory\A_Cats_Desire\04022005\Admin\Admin_Home.php on line 7
Notice: Undefined index: login in C:\WebDev\Work Directory\A_Cats_Desire\04022005\Admin\Admin_Home.php on line 8
PHPSESSID=e92a9dc433e65d0108771d70e50f61af
So, the session id was passed via the url and I can get it fine. But the two values I created on the first page, $_SESSION['authorize'] & $_SESSION['login'] cant get accessed.
What does this mean?
Wade