sessions are very good. sure, if someone wants to hack your site, he will finally succeed (if he's really good), but sessions are rather safe. make sure you check out the new features of php 4.1.0 there are some nice updates concerning sessions!
an other safe way is to use http authentification as it is described in the php manual (from www.php.net). but this way is not so commen and far less often used.