Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > simple FormsAuthentication in a secure environment

Reply
Thread Tools

simple FormsAuthentication in a secure environment

 
 
Craig
Guest
Posts: n/a
 
      08-26-2005
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure your digital information assets with Secure Auditor. SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:53 AM
Secure your digital information assets with Secure Auditor SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:52 AM
Secure your digital information assets with Secure Auditor and alsoSecure Windows with Secure Auditor alannis.albert@googlemail.com Wireless Networking 0 04-14-2008 06:37 AM
70-284 Lab Environment, Need Virtual Environment brooklynbridge508@hotmail.com MCSA 4 05-02-2007 09:49 AM
Setting an environment variable from another environment variable marcwentink@hotmail.com Java 5 04-04-2007 10:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57