Question: Does javascript allow a log-out function? I am trying to create a basic log-in and log-out system with HTML CSS and js. I was able

Does javascript allow a log-out function? I am trying to create a basic log-in and log-out system with HTML CSS and js. I was able to get log in to work with dummy variables and copying a javascript file from online, the code for the log in method is below:

Login

Invalid username and/or password

Now once i am log in it takes me to a new webpage called student or admin HTML and here i implemented a log out button but i am not being able to find anyway of logging out using java script. Is there anyway I can force the browser to clear the cache maybe and go back to the log in screen which is my index.html? or is there a function I can use to log out smoothly?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!