If you're using Forms Authentication, just pass true as a second argument to RedirectFromLoginPage.
Otherwise, idea is essentially the same: you need to create a so-called "persistent cookie", which means that you have to specify correct cookie expiration date.
Take a look here: How to: Create an ASP.NET Login Page
If you're using Forms Authentication, just pass
true
as a second argument to RedirectFromLoginPage.Otherwise, idea is essentially the same: you need to create a so-called "persistent cookie", which means that you have to specify correct cookie expiration date.