calmchess Posted March 19, 2009 Share Posted March 19, 2009 I'm trying to use the following to start a session and set cookies but I get header errors when i try to specify them both. how do i set both a session and a cookie? <?function setcookies(){setcookie("cookname", $_SESSION['username'], time()+60*60*24*100, "/");setcookie("cookpass",$_SESSION['password'], time()+60*60*24*100, "/");session_start();}?> Link to comment https://forums.phpfreaks.com/topic/150078-session-start-and-cookie/ Share on other sites More sharing options...
calmchess Posted March 19, 2009 Author Share Posted March 19, 2009 never mind i sorted all my header problems Link to comment https://forums.phpfreaks.com/topic/150078-session-start-and-cookie/#findComment-788185 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.