Home: Perl Programming Help: Advanced:
setting a cookie after creating html



Clive Calderwood
Deleted

Jul 2, 2000, 7:05 PM


Views: 3732
setting a cookie after creating html

i have a perl script which generates a web page and i wish to set a cookie after the page is set. the browser however does not seem to recognise the set-cookie header and just includes it as part of the web page. is there some way to tell it that the html has finished and the next line is a cookie header?


dws
Deleted

Jul 3, 2000, 12:29 AM


Views: 3732
Re: setting a cookie after creating html

The cookie needs to be set from the response header, before the HTML.