Tuesday 25 October 2011

session_start();

I have managed to manage secure access to the cloudfish site once logged in by using php sessions which redirect to the loggin page once a session has finished. I have done this by giving the session a value to that of the $_post['user_name'] and then checking for it at the top of every page.

Once the session has been ended on logout users are automatically redirected to the splash page.

Logout script:

unset($_SESSION['user_name']));
session_destroy();