ASP
  Home arrow ASP arrow Page 2 - Hey... I Remember You!
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP

Hey... I Remember You!
By: Mitchell Harper
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2001-11-15

    Table of Contents:
  • Hey... I Remember You!
  • Storing the users login details
  • Adding new users
  • Creating the login page
  • The CheckLogin routine
  • The "remember me" part
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    Hey... I Remember You! - Storing the users login details


    (Page 2 of 7 )

    In our example, we will create a simple three-page site. The first page will be where we add new users. The second where the user signs up, and the third will be the page that they get access to if their login details were validated OK.

    To store our login details, we will create a one-tabled database with Enterprise Manager (We could use query analyser, but why complicate it?). So, jump across to your web server and fire up Enterprise Manager (Start -> Programs -> Microsoft SQL Server -> Enterprise Manager). Expand the node of the database server on which you want to create the database (By default, you'll only have one). Right click on the "Databases" node and choose the "New Database..." option. In the name field, enter "smartlogin" and click the OK button at the bottom.

    Ok, now to create our table. Under the "Databases" node, you'll find a "smartlogin" node (our newly created database). Expand that node and right click on the "Tables" node. Choose the "New Table..." option. Create the table with the fields shown in the following diagram:

    The fields of the SmartLogins table

    So, your new table should have three fields: id, user_name and password. To reduce the chance of data duplication, we will create our "id" field as a special field called a "unique identity". Pay close attention to the options of our Id field above: Notice how the Identity field is set to "yes" and both the identity seed and increment fields are 1. This basically means "the id field will be a unique field that will start with the value of 1. Every time a new record is added, its value will be one more than the previous record".

    Close the window and save the table as "logins". Now that we've got all of the database design our of the way, we're ready to create the page that will allow us to add users to our logins table.

    More ASP Articles
    More By Mitchell Harper


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway