23.10.2012 - Zend Framework 2 has an AuthenticationService component that usefull to handle this. If no user is logged, show links like “sign up”, “sign in”… btw, download complete example in http://github.com/samsonasik/SanAuth..