Forum Moderators: coopster
How is that just possible? Just suddenly suddenly stopped working!
Ive a script that lose the session on redirect in IE6 & Opera but NOT in FF & NS
Instead of showing it here, i even tried this simple example that also didnt work!
This is soooo strange but surely is an IE session's BUG, but any solution?
page1.php
<?php if (isset($_GET['link'])) { session_start(); $_SESSION['myvariable'] = 'Hello World'; header('Location: ['...] . $_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI']) . '/page2.php'); exit; }?> <a href="<?php print $_SERVER['REQUEST_URI'] . '?link=yes';?>">Click Here</a>
page2.php
<?php print 'Here is page two, and my session variable: '; session_start(); print $_SESSION['myvariable']; exit;?>
Thanks in advance
adding:
- session_write_close();
- exit;
- Checking if there is broken image.
- adding alt to images.
Then deleting all temporary files, history and closing all browsers and restart!
I will post again if it stopped again, but till then everything is fine!
Please somebody remove the thread to PHP so it can help the rest, i clicked on Perl by fault..!
Thanks
PHP sessions are lost on redirect on IE6 and this is just on my testing computer!
and it works on IE6 when i open NS 8.1 and just go to any page that excutes session_start() on my site! then it stops again after maybe 45 min!
i tried it on IE6 and IE5.5 on different computers and it worked fine direct.
of course i cleard cache, cookies and restarted the computer!
So i dono its just something with my computer, btw i used windows cd to delete and re-install IE6.
was that enough way to remove IE6 completely and its registery and everything or what to do with this buggy thing?
Thanks in advance