| A website login script is used to identify a user | | | | name and password. |
| according to the user name and password he | | | | 2. Some JavaScript code to restrict malicious users |
| provides. Actually this identification restricts other users | | | | from submitting any malicious data to the server. |
| from accessing some particular pages. A simple | | | | 3. A database driven login verification page. This |
| example of explaining the necessity of login script is | | | | verification page actually accepts the user submitted |
| your email server. No one but you can access your | | | | form data (user name and password); verify them |
| email account with your unique login name and | | | | whether there is any such user in their database with |
| password. | | | | this name and password combination. |
| Basically a login script may be of two types. (1). Single | | | | After successful login there must be some method to |
| user login script and (2). Multi-user login script. A single | | | | remember the user during its visiting session. |
| user login script is one in which only one user can login | | | | Otherwise the user has to repeatedly verify him self |
| and can access some particular pages. Example of | | | | when he try to move from one page to another. |
| such script is administrator control panel of a bulletin | | | | Some common and accepted methods of identifying |
| board, etc. In multi-user login script several users share | | | | user whether he already logged in are, |
| same login page to identify themselves with different | | | | 1. Assigning a session variable based on the name of |
| user name and password. | | | | the user. |
| How to design a website login script? | | | | 2. Assigning a cookie in the user computer. |
| Design of a website login script entirely depends upon | | | | 3. Keeping record of user IP and login time in the |
| how much security requires restricting unwanted user | | | | database under the user account. |
| in viewing the restricted pages. Consider the case of a | | | | When user requests a restricted page the verification |
| blog site. There is a security restriction. Malicious users | | | | page first verify whether user is already logged in or |
| can't post any comment in the name of you. But the | | | | not. If not verified he will be redirected to the login |
| security level certainly much and much higher when a | | | | page. When user click on the logout link or when he |
| website dealing with the credit card number of their | | | | leaves that site those login information may be deleted. |
| customers. | | | | This article is written by susen. You can see more |
| A simple login script consists of the following parts. | | | | articles and tools on author's website. If you have any |
| 1. A login page having at least two text field, user | | | | doubt or question you can post at author's forum. |