I have a simple login script and i want to setup some cookies to keep the users signed in until they logout
What is the simplest way to do this without have to do a complete rewrite? is there a javascript i can use or simple line of php i can add?
i'd like it to remember the user name and password if possible, and if possible all together bypass the login screen
Thanks
<?php
session_start();
require_once('backend'.DIRECTORY_SEPARATOR.'init.php');
if(!$_GET['ref'])
header("Location: page.php");
?>
and
<form method="post" id="login" action="login.php">
<?php if($error['l_username']): ?>
<?php echo $error['l_username']; ?>
<?php endif; ?>
<label for="l_username"><font color="#FFF" Size="6">E-Mail:</font></label>
<input type="text" name="l_username" id="l_username" value="<?php echo $l_username; ?>" />
<?php if($error['l_password']): ?>
<?php echo $error['l_password']; ?></div>
<?php endif; ?>
<label for="l_password"><font color="#FFF" Size="6">Password:</font></label>
<input type="password" name="l_password" id="l_password" />
<P><BR><P>
<center><input type="submit" value="Login" /><P>
<a href="registration.html"><font color="#FFF" style="font-size:100px;">Register</font></a>
</form>
Thank's everyone!