Blog System-Program structure-register login log out

Source: Internet
Author: User
Registered
  1. C Determine if the registration data has been submitted
    1. Is
      1. L If the password and user name are either empty
      2. L If I confirm that the password and password are inconsistent
      3. M Add user
      4. C Jump Login Page
    2. Whether
      1. C Show Registration page (submit verification)
Login
  1. Determine if the login data was submitted
  2. C Background Verification Login data-"Validation class"
  3. Determine if the lock time is within
  4. M determine if there is login data
    1. There are logged in users
      1. Number of reset failures and failed logon times
      2. Update logon time, IP
      3. C Set the session user name, user ID, permissions, role
      4. C Logging
      5. C Judgment Jump (manage home/jump to source page)
      6. Jump
    2. No login user exists
      1. Log Logon failure times
      2. Jump Login Page
  5. Set session
  6. Show login interface (submit verification)
Log out
  1. C Clear Session
  2. C Jump to login page

Blog System-Program structure-register login log out

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.