On Jun 26, 9:39 am, 3s2ng <[EMAIL PROTECTED]> wrote:
> Our application is acting weird.
>
> http://petrolwatch.com.sg/
>
> In Firefox when you login nothing happens. You need to refresh before
> your name/details will be displayed below the menu. Also includes
> logout is not working you need to refresh before you can logout
>
> But in I.E login is working but the logout is not.
>
> This happens week ago.
>
> Can you help me with this issue?

The reason for the behavior you describe, is that the headers for your
pages are allowing them to be cached. as such for any given url you
will get what the browser holds in cache if you visited the page
previously.

Are you using your own session mechanism, or explicitly sending
headers to cache the pages? If so, why? Afaik cake takes care of this
for you such that a page using the session will never be cached.

You can see your headers here:
http://web-sniffer.net/?url=http%3A%2F%2Fpetrolwatch.com.sg&submit=Submit&http=1.1&gzip=yes&type=GET&ua=Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+5.0%3B+es-ES%3B+rv%3A1.8.1.1%29+Gecko%2F20061204+Firefox%2F2.0.0.1+Web-Sniffer%2F1.0.24

Note "Cache-Control:    max-age=3600" and the absence of any "don't cache
me" header. The 4 (count em!) Set-Cookie: statements are a bit
suspicious.

Google "php headers disable browser caching" to find a bit more
general info if necessary.

hth,

AD



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to