Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Small problem with custom membership provider hopefully!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik - 09 Dec 2007 08:11 GMT
Hi Everyone,

Hopefully this is an easy one. I've googled around for the answer but cant
find it.

I have simple login page that authenticates via a web service. I am using a
custom membership provider which simply send the username and password to
the web service and I get back a user ID if authentication passes.

The problem is that I don't know how to get the UserID back to the login
page or store it in a session so that I can use it later on. I need the
UserID to pass back in all web service calls to get the relevant data for
that user.

Does anyone know how to pass back data from the custom membership provider?

BTW, I dont want to use a local SQL db to store any data to persist it. This
is all done via the web service

Many thanks

Erik
Peter Bromberg [C# MVP] - 09 Dec 2007 13:55 GMT
Enable Forms Authentication and use your "authenticated" mechanism to create
a formsauthentication ticket which is stored in a cookie. You can use the
Application_AuthenticateRequest event in Global.asax, which fires for every
request, to see that the user has authenticated. For example code, search the
web or go to the QUICKSTART app tutorials at the asp.,net site.
-- Peter
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

> Hi Everyone,
>
[quoted text clipped - 18 lines]
>
> Erik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.