When a user visits below login screen and provides any user name and password, they should be considered a "logged in" user if they go to any subsequent pages without closing their browser.
<html>
<form action="" method="POST">
<span>Login:</span><input type="text" name="puname" ><br>
<span>Password:</span><input type="text" name="ppasswd"><br>
<input type="submit" value="Register"/>
</form>
</body>
</html>
Can anyone suggest how I can implement this with JavaScript (perhaps using cookies)?