what i am trying to do is create a login that sets a cookie but the way i have it now it created the cookie even if the password it wrong. do you think the sloution of having it print another cgi script that would create the same cookie with the expiration date in the past in the case of an incorect password?
or i could put the header() in two if statmets and just be careful not to print before the header()