webapplication with SQL-server

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default webapplication with SQL-server

    Hi,

    I'm new to ASP. Currently I'm planning to develop a web application for my
    company. I want to use ASP for the application and use SQL-server as the
    back-end.

    I want to enable a userID and password for every user. I also want to
    specify permissions to parts of the application.

    I have 2 scenario's for this:

    I let the application handle the permissions to the different parts. I keep
    the permissions in a table in the database so the application knows witch
    user has access to witch part of the application. therefore I will only need
    one connection to the DB.

    I let the permissions handle thru the DB. The application passes through
    password and userID to the DB. For every user who logons to the application,
    the application will have a connection to the DB.

    What's the best scenario?
    Or witch scenario should I use when?



    Ludo


    Ludo VdB Guest

  2. Similar Questions and Discussions

    1. Webapplication Login and RSA API
      Hallo, wie have an RSA ACE Server. I must implement RSA check by loging into webapplication (ASP.NET) . which api (and which RSA Agent) should I...
    2. webservice application webapplication
      I have got a webapplication developed using asp.net ,and a web service application developed using asp.net running on the same server...
    3. convert to dll in vb.net (webapplication)
      Hello I need to know which files in .net framework could help me make dll files, I make a library class project and I want to convert it to dll to...
    4. Can Mutiple webapplication - use same session ?
      Dear all, Pls help me to do : How to share session value between 2 different webapplication I am using sqlserver to store session Both the...
    5. show a message to user (WebApplication)
      Hi all, I would like show a message to user when the function's result return "false"... like this .... if (! my_function(params))...
  3. #2

    Default Re: webapplication with SQL-server

    On Fri, 2 Jul 2004 14:22:42 +0200, "Ludo VdB" <ict@vagga.be> wrote:
    >I'm new to ASP. Currently I'm planning to develop a web application for my
    >company. I want to use ASP for the application and use SQL-server as the
    >back-end.
    >
    >I want to enable a userID and password for every user. I also want to
    >specify permissions to parts of the application.
    >
    >I have 2 scenario's for this:
    >
    >I let the application handle the permissions to the different parts. I keep
    >the permissions in a table in the database so the application knows witch
    >user has access to witch part of the application. therefore I will only need
    >one connection to the DB.
    >
    >I let the permissions handle thru the DB. The application passes through
    >password and userID to the DB. For every user who logons to the application,
    >the application will have a connection to the DB.
    >
    >What's the best scenario?
    >Or witch scenario should I use when?
    Neither is best or worst, and assuming you're working with Windows
    accounts in the same Windows domain as your app and server, using
    Windows authentication might be easier for you to manage. I'd suggest
    grouping access levels for convenience, so all users that need access
    to part A would be in a group, part B another group, etc.

    Jeff
    Jeff Cochran Guest

  4. #3

    Default Re: webapplication with SQL-server

    Here's how I often handle login's:

    ASP Design Tips - Login Page
    [url]http://www.bullschmidt.com/devtip-loginpage.asp[/url]

    Perhaps have a login page that asks the user for his username and
    password. And whatever page that posts to (which could be the same page
    for a self posting form) tests these fields against what is in the
    database, sets the username and userlevel session variables accordingly,
    and then redirects to the proper page - i.e. back to the login page if
    the password is wrong (perhaps with a JavaScript popup saying wrong
    username/password combination) or to the main menu page if the password
    is correct:

    Session("UserName") = objRS("UserName")
    Session("UserLevel") = objRS("UserLevel")
    Response.Redirect "mainmenu.asp"

    Then you can use If Then's or Select Case on each page to control
    whether a user is allowed to actually be there and whether particular
    links of where a user can go actually show up.

    If (Session("UserLevel") <> "Admin") And (Session("UserLevel") <>
    "Regular") Then
    Response.Redirect "login.asp"
    End If

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Designer
    [url]http://www.Bullschmidt.com[/url]
    ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Devdex [url]http://www.devdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139