How Can I Secure the Cookie?
<p>I use to cookie for Remember Me functionality.</p>

<p>This is how i set the cookie:</p>

<pre><code>$value = $dbusername.'|'.$dbpassword;
setcookie('abc', $value,time()+60*60*24*180, '/');
</code></pre>

<p>Retrieve cookie:</p>

<pre><code>$cookie = $_COOKIE['abc'];
$values = explode("|", $cookie);
$username_ck = $values[0]; //ck stands for cookie
$password_ck = $values[1];
</code></pre>

<p>What is a good way to secure my cookies (username/password)?
The password in my database is stored in plain text. I don't want to to encrypt the password in db.</p>
