Skip to content

Mohitkoley/Mohit_begaining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login System with Remember Me Functionality

A simple login system that demonstrates the "Remember Me" functionality to allow users to stay signed in.

Features

  • User login with username and password
  • "Remember Me" checkbox to save login credentials
  • User signup form
  • Responsive design

Implementation Details

Remember Me Functionality

The "Remember Me" feature works by:

  1. When a user checks the "Remember Me" box and logs in, their username is stored in the browser's localStorage
  2. When the user returns to the login page, the stored username is automatically filled in
  3. The "Remember Me" checkbox is also checked to indicate the preference
  4. For security reasons, the actual password is not stored (in a real application, you would use tokens instead)

Files

  • index.html - The login page with the "Remember Me" checkbox
  • styles.css - Styling for the login and signup pages
  • script.js - JavaScript code that handles the "Remember Me" functionality
  • signup.html - A simple signup page
  • signup.js - JavaScript code for the signup page

Security Considerations

In a production environment, you should:

  • Never store passwords in localStorage or cookies
  • Use secure HTTP-only cookies for authentication tokens
  • Implement proper server-side authentication
  • Use HTTPS to encrypt data transmission
  • Consider using OAuth or other secure authentication protocols

How to Use

  1. Open index.html in your web browser
  2. Enter a username and password
  3. Check the "Remember Me" checkbox if you want to stay signed in
  4. Click the Login button

When you return to the page later, your username will be pre-filled if you checked "Remember Me".

About

beginner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •