I really don't see anything wrong with this code does anyone else. For some odd reason it isn't working.
if(isset($_POST['remember'])){
setcookie("".$vp_options['cookie_name']."name", "".$_SESSION['uid']."", time()+60*60*24*100, "/", "".$vp_options['fullurl']."");
setcookie("".$vp_options['cookie_name']."pass", "".$_SESSION['pwd']."", time()+60*60*24*100, "/", "".$vp_options['fullurl']."");
}