working on login script

need to make cookie code to keep the user logged in