Call session_write_close() before redirect. You may lose your session changes otherwise.
Added shortcuts for accessing $_GET / $_POST array.
Added shortcuts for accessing $_GET / $_POST array.