$_GET or $_SESSION for maintaining an application's state?
I wonder, is there a best practice for keeping an application's state? Example: Consider a site where you need to be logged in. Then you can perform some kind of action. What's the better approach? <!-- index.php --> <?php if (!empty($SESSION['loggedin'])): ?> <a href="api.php?action=do">Do action</...