Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I was reading an old thread that said it is impossible to refresh a page to load the header. Is that still the case?

I have tried to load and use cookie data using page redirects/forwards and refreshes but none of the files in the redirect string (one.cgi--two.html--three.cgi) loads the cookie. Human intervention in order to load a new file (four.cgi) is the only thing that seems to work.

Does anyone know of a work-around?

Replies are listed 'Best First'.
Re: Refresh a page
by Anonymous Monk on Oct 12, 2010 at 20:27 UTC

    I for one, have no idea how this relates to perl at all. I've no idea what kind of server software you're using, or what kind of browser you're using. Your explanation of the issue could use a bit more explanation.

    PS: Why do you even have so many redirects? Surely that will be very fragile.

Re: Refresh a page
by Anonymous Monk on Oct 12, 2010 at 22:47 UTC
    I assume that you are using a perl script as this is PerlMonks and you mention using "one.cgi". I don't think that it is possible to get the cookie as a simple refresh but I'm sure that there is a way. Look at some shopping cart scripts.

    Maybe someone here who is a expert will provide an example.