A session condition in php

1st script creates session and:

$_SESSION['role']='admin';

2nd script uses:

if ($_SESSION['role']!='admin' && $_SESSION['role']!='moder') die(''');

For some reason, during the session above, it displays “not allowed”, why?


Answer 1, authority 100%

session_start()by any chance?

I once forgot too)) I killed about 15 minutes before I noticed)