sweenster
01-27-2004, 01:12 PM
i want to set my site up in such a way so that the only way someone can view it is by the "front door" i.e. by loading the index.php page.
When they type in (say) 'main.php' i want main.php to reject it and divert them to the index.php page.
index.php uses a session and loads all sub-pages by include statements. Is there a command that can detect if a session is present and allow the user to pass, but throw them out if not?
When they type in (say) 'main.php' i want main.php to reject it and divert them to the index.php page.
index.php uses a session and loads all sub-pages by include statements. Is there a command that can detect if a session is present and allow the user to pass, but throw them out if not?