Skip to content Skip to sidebar Skip to footer

How To Pass Username And Password From Page To Another Using Javascript

please i want to know how to store the user input data in the registeration page then i pass it to login page and in login page i validate if the user write the right username and

Solution 1:

You can use sessionStorage to store temporary data like this...

sessionStorage.setItem('Username',username);

sessionStorage.setItem('Password',password);

To retreive the data from any of your pages...

var Username = sessionStorage.getItem('Username');

var Password = sessionStorage.getItem('Password');

Blow everything away...

sessionStorage.clear();

Post a Comment for "How To Pass Username And Password From Page To Another Using Javascript"