sessions and back button

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

    sessions and back button

    Hi,

    I am developing a web site with a section only for registered users and
    using sessions to control the access to these pages.
    I have the problem with the "back" button of the browsers, especially
    in IE.
    When I go back within the controlled zone IE always display the message
    "page expired" and mozilla displaying the advise that you are trying to
    access to a post data page etc..

    I am wondering if there is a way to avoid this "problem" a save the
    users to think what to do when they see these messages, letting them to
    go back and forth until they get out of the session.

    Thanks a lot for any help,

    Stefano

  • \(¯`·..Yttrium ...·´¯\)

    #2
    Re: sessions and back button


    "Stefano" <texstefano@lib ero.it> a écrit dans le message de news:
    1115621958.2528 61.153940@g14g2 00...legr oups.com...[color=blue]
    > Hi,
    >
    > I am developing a web site with a section only for registered users and
    > using sessions to control the access to these pages.
    > I have the problem with the "back" button of the browsers, especially
    > in IE.
    > When I go back within the controlled zone IE always display the message
    > "page expired" and mozilla displaying the advise that you are trying to
    > access to a post data page etc..
    >
    > I am wondering if there is a way to avoid this "problem" a save the
    > users to think what to do when they see these messages, letting them to
    > go back and forth until they get out of the session.
    >
    > Thanks a lot for any help,
    >
    > Stefano[/color]


    Hi,
    For Ie, you can use this :

    <?php
    header("Cache-control: private");
    ?>
    On the first linbe of your pages.
    Bye,




    Comment

    • Bob Bedford

      #3
      Re: sessions and back button

      "(¯`·..Yttr ium ...·´¯)" <POUSSIERES.pie gaspam@yahoo.fr > a écrit dans le
      message de news: 427f176d$0$300$ 626a14ce@news.f ree.fr...[color=blue]
      >
      > "Stefano" <texstefano@lib ero.it> a écrit dans le message de news:
      > 1115621958.2528 61.153940@g14g2 00...legr oups.com...[color=green]
      >> Hi,
      >>
      >> I am developing a web site with a section only for registered users and
      >> using sessions to control the access to these pages.
      >> I have the problem with the "back" button of the browsers, especially
      >> in IE.
      >> When I go back within the controlled zone IE always display the message
      >> "page expired" and mozilla displaying the advise that you are trying to
      >> access to a post data page etc..
      >>
      >> I am wondering if there is a way to avoid this "problem" a save the
      >> users to think what to do when they see these messages, letting them to
      >> go back and forth until they get out of the session.
      >>
      >> Thanks a lot for any help,
      >>
      >> Stefano[/color]
      >
      >
      > Hi,
      > For Ie, you can use this :
      >
      > <?php
      > header("Cache-control: private");
      > ?>
      > On the first linbe of your pages.
      > Bye,[/color]

      Or far better IMHO
      session_cache_l imiter('private , must-revalidate');

      works better than the "header" function.


      Comment

      Working...