you can store login info like username and password at cookie for temporary and show it to user when you have it in cookie
on first successful login , store username and password to cookie
if(login is succesfull){
if(isset($_POST['rememberme']) && $_POST['rememberme']==1){
setcookie("civil_id",$_POST['civil_id'],time()+360000);
setcookie("password",$_POST['password'],time()+360000);
}
}
on login form , show stored username and password in cookie
<input type="text" name="username" value="<?php if(isset($_COOKIE['username'])){ echo $_COOKIE['username']; } ?>">
<input type="password" name="password" value="<?php if(isset($_COOKIE['password'])){ echo $_COOKIE['password']; } ?>">
it uses cookie so beware to use it . its potential threat