Tried putting this in tpl_header_default.php and at the top of the static page where it should be loaded (first page after user logs in)
Doesnt appear to do anything.
I am checking the cookies by entering javascript:alert(document.cookie); in my browser address bar.
What zen cart file would you recommend putting it in?

<?php
if ($_SESSION['customer_id'])
{
$var = $_SESSION['customer_id']);
setcookie( "useremail", $var);
}
?>