Calling FormsAuthentication.SignOut() after calling Response.Flush

G

Guest

I know that this is something of an old chestnut. Nevertheless, my problem is
as follows;

I have a page in which I write html out to the client using
Response.Write(), followed by Response.Flush(). On the same page, I have a
logout button that, when clicked, calls FormsAuthentication.SignOut() (after
which a redirect to a page in another app occurs). As you can guess, clicking
on this button raises the following exception;

"Server cannot modify cookies after HTTP headers have been sent."

Does anybody have any ideas about how I get around this?

Thanks,


Martin
 
G

Guest

Hi Martin,

I did not understand exactly what you are trying to do. Do you write the
Response back with Response.Write() and flush it with each request? Then when
do you do the sign out? Can you give a small example of what you are doing?
(maybe a code partical?)

Ethem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top