>Well, you've gotta consider a template as a thing that already has a header, footer and everything in between. It's quite different that constructing a page using the Response objects HTMLHeader and HTMLFooter (before I figured this out, I was generating two footers on every page).
>
>Since the header's already in there, and you're already embedding VFP code into your templates, the consistent thing to do is to insert VFP expressions into the header as well - including the cookies.
>
>An option I usually use when a user logs in (when I create the session cookie) is to generate a page using HTMLHeader, HTMLFooter and Response.Write - which simply contains a cookie and a 1 second redirect to the desired template (all this page says is 'Restoring Personalized Settings')
I try to avoid those approaches as it created an additional transaction and all that should be processed within one.
I'll have to find something for that workaround.