Problem with cookie in cache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xiaawan
    New Member
    • May 2007
    • 17

    #1

    Problem with cookie in cache

    Hi All, Can anyone help me on this issue.

    Actually I store information in a cookie but the problem is when the page is reloaded it gets the old values from cache and many things are not updated unless I remove cache by pressing Ctrl And F5 keys in IE and same for Mozilla. Is there a way for a page to get always new values from cookies or cache and let the website updated?
    Thanks in advance.
  • Jankie
    New Member
    • May 2007
    • 58

    #2
    Am still learning php myself,but I can suggest you try this:
    [code=html]
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT">
    [/code]
    between <head> and </head>

    If you are using redirects,you may want to add the following before your actual header:

    [php]

    header( "Cache-Control: no-cache, must-revalidate" );
    [/php]

    Still,if you are curious on handling cache for sessions,have a look at :
    [php]
    session-cache-limiter
    [/php]


    Hope this will be of help to your issue

    Comment

    • xiaawan
      New Member
      • May 2007
      • 17

      #3
      Dear thank you for your reply I try this.
      Thanks in Advance

      Comment

      Working...