473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Small problem with custom membership provider hopefully!

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

Dec 9 '07 #1
1 1432
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
"Erik" wrote:
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
Dec 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET...
1
by: Axford | last post by:
Hello, I am trying to implement my own custom provider for memberships, basically only id/pwd (no roles). I use the new login web control (I am using asp.net 2.0 and VS2005). In web.config I...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
5
by: Coder | last post by:
I am not sure if I should use the new membership and roles feature in ASP.NET 2.0. My user information is large, and does not fit in the default implementation tables. I don't know if it is worth...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.