Results 1 to 4 of 4

Thread: user credentials

  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default user credentials

    Hi,

    again a question. Where will the user credentials by a web-app be saved ? and from which software-component they will be managed ?
    if someone knows a link where this is explained in or keywords for google, please post. Many Thanks

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Using what? From where? And how?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    E.g. To be a dynamicdrive.com member, i have to be registred. My register data wil be saved in a database (e.g MySql). But in order to post i have to log on, because post is a "protected resource" (i think). My qustion is how does this mechanism look like (i mean identify the user and redirecting to the resource if the user exist). I hope i make it somehow clear.

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    when you login, your details are sent to the server, and a server-side language. Here at DD, ddadmin uses PHP. Using PHP ddadmin sends a request to the database (I will assume MySQL) to attempt to grab some information about the user that is logging in... like username,password,posts,thanks given,thanks received, join date, access level... etcetc...
    This may not be the case here, but the next logical step is to store that information into a session value (possibly an array) which can than be used whenever necessary.

    an example query could be something along the lines of
    Code:
    mysql_query("SELECT user_id, username, password, num_posts, thanks_given, thanks_received, join_dt, access_level FROM Users WHERE username='".$_POST['username']."' AND password='".$_POST['password']."'");
    I highly doubt that he stores everything in 1 table, but you can review JOINs and UNIONs throughout the web, and on the MySQL homesite.

    I think this is more of a "General Help" question, than a Java specific question, but the same applies if you were to use the programming language Java, or any server-side type language

Bookmarks

Posting Permissions

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