simple FormsAuthentication in a secure environment

C

Craig

I'm doing a very simple call like this:
if (MyUser.MyCustomAuthenticate(txtUsername.Text, txtPassword.Text))
{
//set a cookie
HttpCookie myCookie= new HttpCookie("cookie_name");
myCookie.Value = txtUsername.Text;
myCookie.Expires = DateTime.Now.AddDays(7);
Response.Cookies.Add(myCookie);

//forms authentication
FormsAuthentication.RedirectFromLoginPage( txtUsername.Text,
chkRemember.Checked);
}

This works fine in multiple environments, but now I'm attempting to run this
code on a server with very limited security rights. I believe that the
RedirectFromLoginPage is not setting the security ticket and cookie.
Assuming a very strict environment, what should I look for in order to give
FormsAuthentication.RedirectFromLoginPage to do what it needs to do?
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top