How can I do one login script that uses cookies for login and for example I want to check if the visitor is logged in without querying the database.
For example I want on frontpage to show some menu's only for logged in users .
so I must do if(isLoggedIn()) show the menu . But that's a query everytime the page loads so it's not very good
Any suggestions?