Hi,
Maybe I don’t quite understand the point of having secured area and then creating authentication cookie for any user by API (of course, it is possible to create authentication cookie based on the user name of existing user in CMS_User table).
Based on what kind of information you would like to authenticate the user? Wouldn’t it make sense to disable need for authentication for those two pages?
You can find example on how to create authentication cookie for user based on his/her user name in
~\CMSWebParts\Membership\Registration\RegistrationForm.ascx.cs file (version 5.5R2):
FormsAuthentication.SetAuthCookie(ui.UserName, true);
CMSContext.SetCurrentUser(new CurrentUserInfo(ui, true));
UserInfoProvider.SetPreferredCultures(ui);
ui in this context is some existing
UserInfo object.
Thanks,
Miro