ChrisB: SESSION username setzen

Beitrag lesen

Hi,

Ich probiere $_SESSION['username'] zu setzen. Ich sehe, dass ich ein Cookie mit password habe, aber keines mit username.

Was haben Session*inhalte* denn mit Cookies zu tun?

// this sets variables in the session
    setcookie('userid', $userid, strtotime("+1 month"));
    setcookie('password', $md5pass, strtotime("+1 month"));
    setcookie('username', $username, strtotime("+1 month"));

Nein, das setzt keine Werte in der Session.

MfG ChrisB

--
„This is the author's opinion, not necessarily that of Starbucks.“