Re: [PHP] back works in opera but not in internet explorer
To fix this, I put: session_cache_limiter ('private, must-revalidate'); at the beginning of all my pages. Seems to work. -eric wood anders thoresson wrote: When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] back works in opera but not in internet explorer
When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] back works in opera but not in internet explorer
anders thoresson mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 10:51 AM said: Is this an internal IE-issue, or could I make my php-script IE-friendly? Does it work when you refresh the page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back works in opera but not in internet explorer
Is this an internal IE-issue, or could I make my php-script IE-friendly? There are lots and lots of things that IE does differently then the rest of the world. Of course, that is because as probably the biggest monopoly they feel no problems with breaking standards -- at least the standards they don't make. This particular issue is, however, not really a standards issue. When a form is posted or somehting happens to automatically generate a page, some browsers like Mozilla/Netscape will ask you if you want to reload the page with the same info or just view the cached version. IE just doesn't show it. I usually get around this with a go back button on the web page that submits to the previous web page with all the data. Something of a pain to code though. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back works in opera but not in internet explorer
--- anders thoresson [EMAIL PROTECTED] wrote: When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? I answered a similar question on a NYPHP mailing list recently, and you can read my response here: http://lists.nyphp.org/pipermail/talk/2003-August/004757.html Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] back works in opera but not in internet explorer
When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? [Cesar Aracena] This is just a security measure placed there by MS people. It should work after refreshing the page. If you don't want that to appear EVER, then you shouldn't place any session handling, cookies, $_POST and/or $_GET into your PHP code... maybe go back to .htm? HTH Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back works in opera but not in internet explorer
Does it work when you refresh the page? No. A reload in Internet Explorer kicks me out of my web application. Does a reload within IE reset session variables? Reloading a page in the application using Opera works. -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] back works in opera but not in internet explorer
This is just a security measure placed there by MS people. It should work after refreshing the page. But it doesn't... Are session variables killed when an IE user presses back button? [Cesar Aracena] Well, They shouldn't. What are you trying to achieve? If it's something like a FORM where the visitor fill up a lot of fields and after a mistake is detected he is asked to go back and correct the problem, then what you're trying to do is worthless. For that, what you should do is pass the filled fields values using HIDDEN text fields back and forth. If this is not the case, please tell everyone what you are trying to accomplish so we can help you. Maybe a little piece of code wouldn't be so bad. Cheers, Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] back works in opera but not in internet explorer
anders thoresson mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 11:46 AM said: Does it work when you refresh the page? No. A reload in Internet Explorer kicks me out of my web application. Does a reload within IE reset session variables? No, realoading will (should) not reset the session. But to clarify, are you getting a little dialog box that asks you to resubmit the data or cancel? OR is it an actual error page from IE? c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back works in opera but not in internet explorer
look where it says Microsoft Internet Explorer Sessions Fix at: http://www.phpfreaks.com/tutorials/41/1.php regards, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back works in opera but not in internet explorer
But to clarify, are you getting a little dialog box that asks you to resubmit the data or cancel? OR is it an actual error page from IE? I get an error page from IE saying that the page isn't valid any more (I think that's what IE would tell me if I was using an english version anyway. I'm using the swedish one, so it's just a rough translation). What I'm trying to do is not returning to a form to resend it, but rather step backwards through my menu system. My menu is built by multiple forms, all having to following syntax: form method=post action=article_view_issue.php select name=show_article_issue OnChange = form.submit() optionVisa nummer ?php db_connect($dbuser, $dbpassword, $dbdatabase); $query = SELECT i_date FROM un_issue WHERE i_date CURDATE(); $result = mysql_query($query); while ($row = mysql_fetch_row($result)) { ? option value=?php echo $row[0]; ??php echo $row[0] . \n; ? ?php } ? /select /form I'm also starting every page in the system with a call to my function accesscontrol() that checks if certain session variables, like username and password, are set. If, they are validated, if not, the login page are shown. Pressing reload causes the login page to show up, and that's why my guess is that the session variables for some reason are reseted. Accesscontrol() is 134 lines of code, and I don't know which parts might be of interest here. At log in, username and password are stored to two session variables: $_SESSION['uname'] = $_POST['uname']; $_SESSION['pwd'] = $_POST['pwd']; Everytime accesscontrol() is called, I make three if-checks: if(isset($_SESSION['uname'])) { Validate already logged in users. } elseif(isset($_POST['uname'])) { Login-form just filled in. Validate. } else { If neither $_POST['uname'] nor $_SESSION['uname'] is set, here I display the login form } And since reloads brings up the login form, $_SESSION['uname'] is not set anymore, for some reason. //Anders -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php