If you are using a checkbox, you can do this:
FormsAuthentication.SetAuthCookie("joeuser", CheckBox1.Checked) <-- would
create a persistant cookie
FormsAuthentication.SetAuthCookie("joeuser", CheckBox1.Checked) <-- would
not create a persistant cookie
OR
You can use
FormsAuthentication.RedirectFromLoginPage("username", CheckBox1.Checked)
So, the Checkbox1.Checked returns a Boolean value
http://msdn.microsoft.com/library/d...nticationclassredirectfromloginpagetopic1.asp
If you use Forms Authentication, one of the options you can set when logging
a user in is to create a persistant cookie.
FormsAuthentication.SetAuthCookie("joeuser", True) <-- would create a
persistant cookie
FormsAuthentication.SetAuthCookie("joeuser", False) <-- would not create a
persistant cookie