I wish to create this: a protected folder...when user tries to access this folder he is sent to the "access denied.php" page... The "access denied.php" page will have a login form which when submitted (by registered user)will take the user to the cart page How to add this php code for login? and what's the code?
It works this way already. When visitor tries to access protected folder he sees login page. When authenticated expired user tries to access protected folder he sees access denied page. Do you want to insert login form to this page? If so this will be confusing for user because he is logged in already.