php session_start sebelum header

// Call session_start() before sending header(s)
session_start();

header...
echo...
Ashamed Ape