general design question here:
i'm creating a flash client for a site. the site will only permit authorized users to view it. what i'm wondering is how often should i check the user's username/password against the database? the people i'm making the website for want to be able to exclude anybody at any given time...this would suggest that i check permissions with every page access just in case the admin has decided to boot someone by revoking their access permission.
ordinarily, i consider a user logged in if my $SESSION['username'] variable is set (or perhaps $SESSION['permission'] is true). how long does it take for a session to expire?