Login

Discussion in 'ASP .Net' started by Qweertz, Dec 12, 2006.

  1. Qweertz

    Qweertz Guest

    Hi!

    I'm new in ASP.net and I hope you can help me to solve my little problem.

    I have a web application which requires login.
    Usernames and passwords are in SQL Express database (among with other data).
    I need to check if user entered correct username and password (and proceed
    him to "secure area" of web application), but I shouldn't connect directly
    to database but via web service.
    So web application sends login details to web service which contacts
    database and checks login details.
    How to do this?
    If I wouldn't have to use web service I would create Session in web
    application when user enters correct username and password. This would solve
    my problem. Can I do something similar when web service is included?

    Thanks,
    Tomica Gril
     
    Qweertz, Dec 12, 2006
    #1
    1. Advertising

  2. Qweertz

    Mark Rae Guest

    Mark Rae, Dec 12, 2006
    #2
    1. Advertising

  3. Hi,
    Yes what you are looking for can be done through Soap Headers.You will find
    complete working code for it in the following URL:

    http://www.codeproject.com/cs/webservices/authforwebservices.asp.

    Thanks and Regards,
    manish bafna


    "Qweertz" wrote:

    > Hi!
    >
    > I'm new in ASP.net and I hope you can help me to solve my little problem.
    >
    > I have a web application which requires login.
    > Usernames and passwords are in SQL Express database (among with other data).
    > I need to check if user entered correct username and password (and proceed
    > him to "secure area" of web application), but I shouldn't connect directly
    > to database but via web service.
    > So web application sends login details to web service which contacts
    > database and checks login details.
    > How to do this?
    > If I wouldn't have to use web service I would create Session in web
    > application when user enters correct username and password. This would solve
    > my problem. Can I do something similar when web service is included?
    >
    > Thanks,
    > Tomica Gril
    >
    >
    >
     
    =?Utf-8?B?TWFuaXNoIEJhZm5h?=, Dec 13, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William F. Robertson, Jr.
    Replies:
    0
    Views:
    443
    William F. Robertson, Jr.
    Jul 2, 2003
  2. Hermit Dave

    Forms Login Page Not Login Out

    Hermit Dave, Jan 12, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    482
    Hermit Dave
    Jan 13, 2004
  3. Nans
    Replies:
    2
    Views:
    20,107
    Martin Marinov
    Jun 17, 2004
  4. =?Utf-8?B?Z2FyaWJhbGRp?=
    Replies:
    2
    Views:
    4,930
    =?Utf-8?B?Z2FyaWJhbGRp?=
    Feb 25, 2005
  5. frekster
    Replies:
    1
    Views:
    943
    frekster
    Sep 14, 2005
Loading...

Share This Page