Fixed session destroy method: query was wrong
now also the application.php script have its own session expiration check with redirection to login page. Implemented jom_immediate_redirect() parametric function for redirection. Fixed constants in user_config.template: removed protocol specification in URI constant.
removed redirect parameter within JSON reply from ard.php: was the deprecated HTTP_REFERER