Jeg synes egentlig at det plejer at fungere fint nok med at blive logget ind automatisk hvis man angiver persistant cookie...
Det er denne her metode du mener ikke ?
FormsAuthentication.RedirectFromLoginPage Method (String, Boolean)
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Language C#
public static void RedirectFromLoginPage(
string userName,
bool createPersistentCookie
);
Parameters
userName
Name of the user for cookie authentication purposes. This does not need to map to an account name and will be used by URL Authorization.
createPersistentCookie
Specifies whether or not a durable cookie (one that is saved across browser sessions) should be issued.
Remarks
The RedirectFromLoginPage method redirects to the return URL key specified in the query string. For example, in the URL
http://www.contoso.com/login.aspx?ReturnUrl=caller.aspx, caller.aspx is the return URL that RedirectFromLoginPage redirects to. If the return key does not exist, RedirectFromLoginPage redirects to Default.aspx. ASP.NET automatically adds the return URL when the browser is redirected to the login page specified in the loginUrl attribute in the <forms> Element configuration directive. The method issues an authentication ticket and does a SetForms with the ticket, using the appropriately configured cookie name for the application as part of the redirect response.