asp.net.4. web forms
on local domain rest call i am loosing the authentication..
so on the call itself i enter the user name password...
req.PreAuthenticate = true;
string cre = String.Format("{0}:{1}", userName, password);
byte[] bytes = Encoding.ASCII.GetBytes(cre);
string base64 = Convert.ToBase64String(bytes);
req.Headers.Add(HttpRequestHeader.Authorization, "basic " + base64);
req.Headers.Add(HttpRequestHeader.ContentEncoding, "utf-8");
well this code just not working..
i have tried to sign in again on the target page
with
bool c = User.Identity.IsAuthenticated;
if (!c)
{
FormsAuthentication.SetAuthCookie(theUserName, false);
string sUrl = HttpContext.Current.Request.Url.ToString();
HttpCont ...
Go to the complete details ...