Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

WEB Dev help-plzz

Options
  • 23-03-2004 8:44pm
    #1
    Registered Users Posts: 202 ✭✭


    hey all,
    any1 out there know how to do the following - welcome a user when they log onto a system with there username.
    there is a screenshot attached showing you what i mean

    any help greatly appreciated!


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    It's a simple enough process. Depends on the nature of the website.

    Boards.ie for example, stores two cookies on your machine (at least). One of these is called userid and stores a number, corresponding to your userid, surprise surprise. The other is called pwd or password (or something similar) and stores the md5 hash of your boards password.

    When you access a boards page (the main page for example), it takes these two cookies, finds the corresponding userid in the boards database, and retrieves all or some of the information in that row. It then compares the value in password to that in the database (boards never stores your actual password in textual form). If they match, you are who you say you are (or at least, you logged in with persistant cookies), and it displays a welcome message to you, and any other personalised things.

    Easy peasy. :)


  • Registered Users Posts: 202 ✭✭bribren2001


    thanks for that,
    but is there any asp,html,sql code that can do this as i have a database with usernames and passwords.


  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    Any language that can handle cookies would do it. ASP, PHP, Perl for example. It could also be done in Javascript (probably), but you wouldn't want to.


  • Registered Users Posts: 7,739 ✭✭✭mneylon


    Have a look over on http://www.hotscripts.com - there are loads of examples of this with and without databases.


  • Moderators, Politics Moderators Posts: 39,054 Mod ✭✭✭✭Seth Brundle


    Originally posted by bribren2001
    thanks for that,
    but is there any asp,html,sql code that can do this as i have a database with usernames and passwords.
    If you already have a web host find out what languages & databases they support (if any).
    Anyway for ASP, try www.aspin.com


  • Advertisement
Advertisement