Hello Cirene,
You forgot to call FormsAuthentication.SetAuthCookie
Response.Cookies.Remove(FormsAuthentication.FormsC ookieName);
FormsAuthentication.SetAuthCookie("username", false);
Response.Redirect("samepage.aspx");
Also, you can use the AJAX login, see sample there
http://weblogs.asp.net/andrewfrederi...r-asp-net.aspx
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Chow can i log in programatically?
C>
Ci want my users to be able to specify username & password in a
Csession var as an option
C>