User Authentication with DB Cs346 Fall 2010. Requirements Web site is for registered users only – Username and password – Password is encripted.

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

WordPress from Start to Finish Day 1: Installing and Using WordPress Looking at the WordPress database.
MySQL Access Privilege System
WaveMaker Visual AJAX Studio 4.0 Training
Murach's MySQL, C1 © 2012, Mike Murach & Associates, Inc. Slide 1.
PHP and MySQL Database. Connecting to MySQL Note: you need to make sure that you have MySQL software properly installed on your computer before you attempt.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Access Quiz October 24, The database objects bar in Access contains icons for tables, queries, forms and reports 1.True 2.False.
Multiple Tiers in Action
New Student Orientation Registration System Stephen Nakamura EE496 Final Presentation Fall 2008.
MIS2502: Data Analytics MySQL and SQL Workbench David Schuff
STOCKDOC Advanced Stock Management System
CST JavaScript Validating Form Data with JavaScript.
Application Development Description and exemplification of server-side scripting language for server connection, database selection, execution of SQL queries.
What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a collections of related data entries and.
PHP1-1 PHP & SQL Xingquan (Hill) Zhu
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Cookies Set a cookie – setcookie() Extract data from a cookie - $_COOKIE Augment user authentication script with a cookie.
Class 8Intro to Databases Authentication and Security Note: What we discuss in class today covers moderate to low security. Before you involve yourself.
INTERNET APPLICATION DEVELOPMENT For More visit:
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
How to Hack a Database.  What is SQL?  Database Basics  SQL Insert Basics  SQL Select Basics  SQL Where Basics  SQL AND & OR Basics  SQL Update.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
PHP and MySQL for Client-Server Database Interaction Chapter 10.
WaveMaker Visual AJAX Studio 4.0 Training Authentication.
Creating a Web Site to Gather Data and Conduct Research.
Ways to manage DB in MySQL cs346. Six ways to CREATE and INSERT INTO tables Modelocalremotelocalremotewindow WhereMysql console Putty; Mysql console Mysql.
Accessing MySQL with PHP IDIA 618 Fall 2014 Bridget M. Blodgett.
GUI To Create a DB Table CS346 Fall Methods to create a table At your local server and/or remote server – Use MySQL Console and create it interactively.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Advanced PHP: Using PHP with MySQL C. Daniel Chase The University of Tennessee at Chattanooga.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa.
Reusable and Multiple Actions USINGQTP65-STUDENT-01A.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
Controlling Web Site Access Using Logins CS 320. Basic Approach HTML form a php page that collects the username and password  Sends them to second PHP.
Online Parking System.
WEB SECURITY WEEK 2 Computer Security Group University of Texas at Dallas.
Design of a Relational Database Schema for Magnet Inventory Data Catherine Pao July 26, 2006.
Windows 7 WampServer 2.1 MySQL PHP 5.3 Script Apache Server User Record or Select Media Upload to Internet Return URL Forward URL Create.
Server-Side Solutions Steve Perry
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Secure Authentication. SQL Injection Many web developers are unaware of how SQL queries can be tampered with SQL queries are able to circumvent access.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
MySQL Getting Started BCIS 3680 Enterprise Programming.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
How To Start a SQL server Connecting to SQL Server.
Authentication & Authorisation Is the user allowed to access the site?
Databases.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Design and Development
Aqua Data Studio.
Web Systems Development (CSC-215)
Chapter 8 Working with Databases and MySQL
PHPMyAdmin.
TJHSST Website Redesign
Chapter 13 Security Methods Part 3.
Accessing Your MySQL Database from the Web with PHP (Ch 11)
TJHSST Website Redesign
User Registration.
Introduction to HTML: Forms
Presentation transcript:

User Authentication with DB Cs346 Fall 2010

Requirements Web site is for registered users only – Username and password – Password is encripted

Design Database student – Table auth_user – Re-use m12 scripts to create the table MVC – GUI: xhtml for registration entry – PHP: process the input and insert the entry into DB table auth_user – DB: auth_user – GUI: xhtml for existing user login – PHP: process the username-password, query auth_user

Development stages

Specify name of table and # columns

Define field for auth_user

Add table ‘auth_user’ to DB ‘student’ The above message was generated by the PHP sript. Is it really true? Use m11 script to list tables

Verify that table ‘auth_user’ is created etc. Information_schema has too many attributes

New User Registration

One entry added

Is the entry really there in DB? Use MySQL Console Write a PHP script to query the database

mysql> show databases; | Database | | information_schema | | books | | cs346 | | ex04a | | mailinglist | | mysql | | products | | student | | testdb1 | rows in set (0.00 sec) mysql> use student; Database changed mysql> show tables; | Tables_in_student | | auth_user | | my_music | rows in set (0.00 sec)

mysql> use student; Database changed mysql> show tables; | Tables_in_student | | auth_user | | my_music | rows in set (0.00 sec) mysql> SELECT * FROM auth_user; Empty set (0.00 sec) mysql> SELECT * FROM auth_user; | f_name | l_name | username | password | | John | Doe | john.doe | *54B88827AF6DA4FCE049F501D462BE6A9F7EF979 | row in set (0.00 sec) mysql>

Existing User Login

Existing User Login - successful

Existing User Login - Failure

Next Upload to remote server Testing – Repeat all the steps in the local server: Create table auth_user Enter new registrations Authenticate the users

Add a 2 nd New Registration

ok

success