[thelist] Response Object Perversity....

Anthony Baratta Anthony at Baratta.com
Fri Mar 16 20:22:24 CST 2001


At 05:14 PM 3/16/2001, James Aylard wrote:
>Anthony,
>
> > I want to set some cookie info and then re-direct to another page. But
> > according the MS, once you set the Response.Redirect, it ignores all
> > Response.Cookie data created prior.
>
>         Admittedly, this is off the top of my head -- don't have my ASP 
> reference
>handy. But if you set Response.Buffer = True, did your cookie stuff, then
>did a Response.Flush and then did your Response.Redirect, would that work?

James...

Nope - you throw a Run-time error if you flush the buffer and then call 
redirect.

However, I think I found the solution:

Use the Session object. Its cookie based. Set it on the first page, look 
for it on the second page. If its not there - cookies are not set.

Simple. Stupidly simple. But aggravating that I can't attack the HTML 
headers with impunity.



---
Anthony Baratta
President
Keyboard Jockeys





More information about the thelist mailing list