查帮助:
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. 
Res
Redirects, based on the contents of the URL key in the query string, or redirects to Default.aspx if the return key does not exist. It 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.大意是说,它会使用username参数写一个cookie。再访问其他页面时,就使用此cookie中的值代表当前登录的用户。