Hi,
I've got a bit of a doubt regarding how the browser behaves in a 'session-less' environment. I have got a page (A) where I let the user choose something of his/her choice using a form (POST method). Then once the form is submitted, based on his/her choice page B is displayed. There can be many links on page B which will be redirected to their corresponding pages along. I am also passing the choice as a parameter here. So if user selects the radio button '1' in page A, then B will get '1' as his choice and once the user clicks on any of the hyperlinks, say h, he/she will be taken to a page with URL like http://server/folder/h.cgi?choice=1.
Based on this parameter this page will do some processing.
But my question is, that if the user clicks on the browser's back button now from here, then what will happen? I have cleared the browser's cache after having arrived at the last page (link h) and then gone back to the previous page and if I click on any other link , say x, I found that the original choice is still there which is exactly what I want. But is it a guaranteed behavior? I want to make sure that once the user makes his choice in page A, user will be freed of the burden to make that choice again and after having clicked on any of the links on page B, user can come back to page B again, click on another link and be assured that his original choice is still there.
Apologies for making it sound a little too complicated that what is :).
Thanks in advance :).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.