how can I avoid a page expired error?

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

    how can I avoid a page expired error?

    The user searches and see the results, then clicks for more detail in a
    result. He then clicks the BACK button in the browser to see the results
    again and....gets a page expired error.

    How do you get around this?


  • Sebastian Lauwers

    #2
    Re: how can I avoid a page expired error?

    NotGiven wrote:
    [color=blue]
    > The user searches and see the results, then clicks for more detail in a
    > result. He then clicks the BACK button in the browser to see the results
    > again and....gets a page expired error.[/color]

    I suppose the page expired thing is when iexplorer needs to resend post
    data to the server? Not sure anymore, but you could try to open a
    session, store the post data and do a header ("location:" );.
    [color=blue]
    > How do you get around this?[/color]

    HTH,
    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

    • steve

      #3
      Re: how can I avoid a page expired error?

      "NotGiven" wrote:[color=blue]
      > The user searches and see the results, then clicks for more detail[/color]
      in[color=blue]
      > a
      > result. He then clicks the BACK button in the browser to see the
      > results
      > again and....gets a page expired error.
      >
      > How do you get around this?[/color]

      I presume you are using a script from somewhere else. Check the html
      source to set if there are any meta tags related to expiring (it is
      easy to figure that out). If so, remove them from the php code.

      --
      http://www.dbForumz.com/ This article was posted by author's request
      Articles individually checked for conformance to usenet standards
      Topic URL: http://www.dbForumz.com/PHP-avoid-pa...ict139664.html
      Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467180

      Comment

      • Chung Leong

        #4
        Re: how can I avoid a page expired error?

        "NotGiven" <noname@nonegiv en.net> wrote in message
        news:6UmTc.1711 7$Ji.6403@bigne ws4.bellsouth.n et...[color=blue]
        > The user searches and see the results, then clicks for more detail in a
        > result. He then clicks the BACK button in the browser to see the results
        > again and....gets a page expired error.
        >
        > How do you get around this?
        >[/color]

        Don't use POST for submitting the search.


        Comment

        • neur0maniak

          #5
          Re: how can I avoid a page expired error?

          NotGiven wrote:[color=blue]
          > The user searches and see the results, then clicks for more detail in a
          > result. He then clicks the BACK button in the browser to see the results
          > again and....gets a page expired error.
          >
          > How do you get around this?
          >
          >[/color]

          I found that using "session_start( )" on the page submitting the form, or
          on the target using POST, then returning to the first page will give
          this error. Instead, I was forced to use cookies instead of sessions.

          Comment

          • steve

            #6
            Re: Re: how can I avoid a page expired error?

            "neur0mania k" wrote:[color=blue]
            > NotGiven wrote:[color=green]
            > > The user searches and see the results, then clicks for more[/color][/color]
            detail[color=blue]
            > in a[color=green]
            > > result. He then clicks the BACK button in the browser to see the[/color]
            > results[color=green]
            > > again and....gets a page expired error.
            > >
            > > How do you get around this?
            > >
            > >[/color]
            >
            > I found that using "session_start( )" on the page submitting the[/color]
            form,[color=blue]
            > or
            > on the target using POST, then returning to the first page will[/color]
            give[color=blue]
            > this error. Instead, I was forced to use cookies instead of[/color]
            sessions.

            neur0maniak, I would not think so. After all, session and
            cookie-based.

            --
            http://www.dbForumz.com/ This article was posted by author's request
            Articles individually checked for conformance to usenet standards
            Topic URL: http://www.dbForumz.com/PHP-avoid-pa...ict139664.html
            Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467729

            Comment

            • neur0maniak

              #7
              Re: how can I avoid a page expired error?

              steve wrote:[color=blue]
              > "neur0mania k" wrote:[color=green]
              > > NotGiven wrote:[color=darkred]
              > > > The user searches and see the results, then clicks for more[/color][/color]
              > detail[color=green]
              > > in a[color=darkred]
              > > > result. He then clicks the BACK button in the browser to see the[/color]
              > > results[color=darkred]
              > > > again and....gets a page expired error.
              > > >
              > > > How do you get around this?
              > > >
              > > >[/color]
              > >
              > > I found that using "session_start( )" on the page submitting the[/color]
              > form,[color=green]
              > > or
              > > on the target using POST, then returning to the first page will[/color]
              > give[color=green]
              > > this error. Instead, I was forced to use cookies instead of[/color]
              > sessions.
              >
              > neur0maniak, I would not think so. After all, session and
              > cookie-based.
              >[/color]
              Try it and see for yourself.

              Using a session_start() adds headers to the page that prevents caching
              on the user's side

              Comment

              • R. Rajesh Jeba Anbiah

                #8
                Re: how can I avoid a page expired error?

                steve <UseLinkToEmail @dbForumz.com> wrote in message news:<411fe3f6$ 1_4@news.athena news.com>...
                <snip>[color=blue][color=green]
                > > I found that using "session_start( )" on the page submitting the[/color]
                > form,[color=green]
                > > or
                > > on the target using POST, then returning to the first page will[/color]
                > give[color=green]
                > > this error. Instead, I was forced to use cookies instead of[/color]
                > sessions.
                >
                > neur0maniak, I would not think so. After all, session and
                > cookie-based.[/color]

                PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


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

                Comment

                • name?

                  #9
                  Re: how can I avoid a page expired error?

                  "NotGiven" <noname@nonegiv en.net> wrote in message news:<6UmTc.171 17$Ji.6403@bign ews4.bellsouth. net>...[color=blue]
                  > The user searches and see the results, then clicks for more detail in a
                  > result. He then clicks the BACK button in the browser to see the results
                  > again and....gets a page expired error.
                  >
                  > How do you get around this?[/color]

                  If you're using sessions, this is caused by the default value of
                  session.cache_l imiter being 'no-cache' in your php.ini file. You'll
                  need to change it to a less-restrictive value, which may or may not be
                  a security issue. In your case (a search) I'd guess it's not, and a
                  value of 'private' would solve the problem. http://us4.php.net/session
                  has more detail on session.cache_l imiter settings.

                  Comment

                  Working...