session and back

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

    session and back

    I'm planning to modify my site from "POST" to "SESSION"....Th is is because
    many times, when clicking "back" on the browser, the page has to be
    refreshed, and I absolutely want to avoid this, also I don't want to use
    "GET" variables, as they are visible in the URL and I want to avoid this
    (POST are also visible but not for everyone. session would be hidden)

    If I use Session variables, will this fix the problem with "back" button ?
    or may I have the same problem ?

    Thanks for help.

    Cheers.

    Bob


  • Theo

    #2
    Re: session and back

    "Bob Bedford" <bedford1@YouKn owWhatToDoHereh otmail.com> wrote in
    news:4176cc48$0 $28012$5402220f @news.sunrise.c h:
    [color=blue]
    > If I use Session variables, will this fix the problem with "back"
    > button ? or may I have the same problem ?[/color]

    page 1 could check for the existance of session variables, which wont be
    there the first time around, so they will be blank. post to the second page
    normally. put the post variables into sessions, named as you want them.
    when going back to the first page, it will check for the existance of
    sessions again, and they will be there.

    Ive never used sessions directly in a form. actually I didnt know it could
    be done.

    Comment

    • Tony Marston

      #3
      Re: session and back


      "Theo" <invalid@noemai l.com> wrote in message
      news:Xns9588942 5266FEdensnews1 23@216.168.3.44 ...[color=blue]
      > "Bob Bedford" <bedford1@YouKn owWhatToDoHereh otmail.com> wrote in
      > news:4176cc48$0 $28012$5402220f @news.sunrise.c h:
      >[color=green]
      >> If I use Session variables, will this fix the problem with "back"
      >> button ? or may I have the same problem ?[/color]
      >
      > page 1 could check for the existance of session variables, which wont be
      > there the first time around, so they will be blank. post to the second
      > page
      > normally. put the post variables into sessions, named as you want them.
      > when going back to the first page, it will check for the existance of
      > sessions again, and they will be there.
      >
      > Ive never used sessions directly in a form. actually I didnt know it could
      > be done.[/color]

      You cannot use sessions in a form, but you can use session data to create a
      form. Session data exists on the server only, and what is sent to the client
      browser is an HTML document which may contain values obtained from the
      session data.

      If you are having problems with the BACK button ten read


      --
      Tony Marston

      This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




      Comment

      • Theo

        #4
        Re: session and back

        "Tony Marston" <tony@NOSPAM.de mon.co.uk> wrote in
        news:cl7i2d$8k5 $1$8302bc10@new s.demon.co.uk:
        [color=blue]
        > You cannot use sessions in a form, but you can use session data to
        > create a form. Session data exists on the server only, and what is
        > sent to the client browser is an HTML document which may contain
        > values obtained from the session data.
        >[/color]

        thats what I thought, but there have been enough undocumented things to
        make me go 'hmmmmm'.

        Comment

        Working...