in reply to Cookies, how can you set one if it must be done before the header?
Your pseudocode is kind of illogical.
How about this:
if cookie doesn't exist { if (the form has been submitted){ check form for authenticity set cookie from login form print html headers print rest of script } else { # form not submitted print html headers print login form } } else { print html headers print rest of script }
There are three states, right? Cookie doesn't exist and this is a form submission, cookie doesn't exist and this is a form submission, and cookie does exist.
Does that make sense?
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Cookies
by Anonymous Monk on Dec 24, 2003 at 10:08 UTC | |
by inman (Curate) on Dec 24, 2003 at 10:44 UTC | |
by edoc (Chaplain) on Dec 24, 2003 at 12:22 UTC | |
by Anonymous Monk on Dec 24, 2003 at 22:57 UTC | |
by Cody Pendant (Prior) on Dec 26, 2003 at 00:43 UTC |