Non ho capito, questa variabile la imposti tu?

$_SESSION[user_id]

Se si, hai in tutti i file in cui ti server il session_start() ?