codice:
session_start();
setcookie(session_name(),session_id(), time(), "/");
dovrebbe esserti sufficente per capire