Re: Session problems based on browser?
| From: | Chris Shiflett | Date: | Wed, 19 Jun 2002 03:38:30 +0000 |
| Subject: | Re: Session problems based on browser? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102855@lists.php.net to get a copy of this message | ||
I mentioned a couple in a previous email:
header("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
header("Cache-Control: Private");
Most HTTP headers with regards to caching are more intended to dictate proxy behavior. For example, the header above specifying that cache-control be private keeps personal information sent in a POST from being cached. In fact, many people include that header at the beginning of any script receiving POST data (there are clean ways to do this with well-designed architectures).
I honestly don't know which HTTP headers IE will be most interested in, so you might want to do a tad bit of research. Here is another to try:
header("Pragma: no-cache");
Let me know if any of this does/doesn't work. I should give more concrete answers, but I don't have much time this evening. :)
Chris
César Aracena wrote:
Hi all. I'm having the same problem when developing a site with a flash animation inside. Let's say I'm seeing the page, I change the flash background color, save the flash animation again and refresh the page... nothing happens. I found out that is a problem of configuration of my IE. If I go to Tools > Options > Temporary Internet Files and set it up to "Every visit to the page" then it get refreshed well. The thing is that I don't want to tell every visitor to change this. Isn't there a way for PHP to send "refresh" header if the visit is beign made after the last update date stored maybe in a DB or file???-----Original Message----- From: Bob Irwin [mailto:bob@pnc.com.au] Sent: Tuesday, June 18, 2002 8:57 PM To: php-general Subject: [PHP] Session problems based on browser? G'day, I'm using scripts that are using sessions. A user logs into a mainpagewith a master list of database entries. They go to another page, add a new database entry and it appears on the master list. The user addsanotherdatabase entry and upon going back to the master list, the new entrydoesnot exist. It is like the database has not been updated. Refreshingthepage does not help, I have to go and touch the file on the server or restart the browser to see the changes. What I though yesterday was the problem was occuring in both netscapeandIE browsers. However, I have since discovered that netscape does NOThavethis problem. Are there any session issues known to occur only withInternetExplorer? We are running PHP 4.2 on a unix box with apache. Any ideas? Best Regards Bob (Coffee + Laptop = KABOOM!) Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php