Ask a Question related to ASP.NET Security, Design and Development.
-
Tim Mackey #1
how to persist a user identity across a web service session context
hi,
i'm using a simple web service authentication method (not WSE). the problem
is that when i set a generic principal on the Context.User object, it is
lost by the time the next call is made by the client on the same web service
object.
the winforms client first calls the login method, which does the following
if the username/pwd is correct:
GenericIdentity id = new GenericIdentity(username, "CustomAuth");
Context.User = new GenericPrincipal(id, new string[]{"MyAppClients"});
then for every other method called in the web service, i call the following
method to make sure that the client has already logged in:
private bool authenticate()
{
if(Context.User.IsInRole("MyAppClients"))
return true;
else
return false;
}
i debugged the code and the Context.User is correctly set at the end of the
login method, but is always reset for subsequent calls. why does this
happen? i thought the web service session would preserve any changes i made
to the Context.user.
thanks for any help
tim mackey.
--------------------------
67d0ebfec70e8db3
Tim Mackey Guest
-
flow user identity to web service through httpcontext??
hi all is there anyway to get access to the httpcontext of a web service call so that a custom principal object can be carried in the... -
Context.User.Identity question
Hi! 1st: when I debug this: FormsAuthentication.SetAuthCookie(email.Text, RememberCheckbox.Checked) and set a breakpoint a line after -
APS3 / IIS4 Session wont persist
Having trouble getting Session to persist. Have checked properties of the Virtual Directory in IIS4 manager and "Enable Session State" is... -
#3910 [Opn->Csd]: persistent connections persist even after a kill session has been done on them.
ID: 3910 Updated by: sniper@php.net Reported By: guage at usa dot net -Status: Open +Status: Closed... -
Session Variables Persist Across Window Close on Mac IE 4.5 and Greater
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the...



Reply With Quote

