oh, and
http://codenewbie.com/test.php is an example of that code i posted above, .. except it is echoing the session id afterwards.
i have read about session_start() being at the top of every page too, but maybe that is just to assure that if someone enters from a different page, their session is started.