button back and session expired

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    #1

    button back and session expired

    I've all my site in PHP with POST method, for avoiding most user see what's
    appening in the variables I pass trough the pages. (as some info shouldn't
    be visible for most users).

    What appens when I push the "return" button is an error message telling the
    "page has expired". I know this is a problem with the POST method, as I've
    seen thousand thread about this, but I can't change my code. So it's there
    any way to let this message disappear, maybe working with the header of the
    pages (cache expires.....any thing else).

    Please help !

    BoB


  • Sebastian Lauwers

    #2
    Re: button back and session expired

    Bob Bedford wrote:

    [...]
    [color=blue]
    > I know this is a problem with the POST method, as I've
    > seen thousand thread about this,[/color]

    thus you've seen thousands of time the solution to that problem.

    S.


    --
    The most likely way for the world to be destroyed,
    most experts agree, is by accident.
    That's where we come in; we're computer professionals.
    We cause accidents.
    --Nathaniel Borenstein

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: button back and session expired

      "Bob Bedford" <bedford1@YouKn owWhatToDoHereh otmail.com> wrote in message news:<41227875$ 0$4877$5402220f @news.sunrise.c h>...[color=blue]
      > I've all my site in PHP with POST method, for avoiding most user see what's
      > appening in the variables I pass trough the pages. (as some info shouldn't
      > be visible for most users).
      >
      > What appens when I push the "return" button is an error message telling the
      > "page has expired". I know this is a problem with the POST method, as I've
      > seen thousand thread about this, but I can't change my code. So it's there
      > any way to let this message disappear, maybe working with the header of the
      > pages (cache expires.....any thing else).[/color]

      1. If using session, add session_cache_l imiter('private , must-revalidate');
      2. Otherwise, add header('Cache-control: private');

      --
      | Just another PHP saint |
      Email: rrjanbiah-at-Y!com

      Comment

      • Bob Bedford

        #4
        Re: button back and session expired

        > 1. If using session, add session_cache_l imiter('private ,
        must-revalidate');[color=blue]
        > 2. Otherwise, add header('Cache-control: private');[/color]

        this is a valuable and very helpful help !!!

        Thanks, now it works !

        Bob


        Comment

        Working...