Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i have a problem with logging in a user from server side on a claims (fba) enabled site. Users can register themselves on the site and get an email with a confirmation link. After they click on the confirmation link, they should be automatically logged in.

My first attempt was to log in with the authentication web service (_vti_bin/Authentication.asmx), get the cookie and add it to the page response. Unfortunaly the authentication web service returns a System.Net.Cookie instead of System.Web.Httpcookie.

Is this the right path? Is there another way?

Thanks for your help!

[Update]

Creating a Httpcookie out of the System.Net.Cookie and add this to the page response did not work either.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Try this...

SPClaimsUtility.AuthenticateFormsUser(
                Context.Request.UrlReferrer,
                UserName.Text, 
                Password.Text);
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.