diff --git a/modules/metarefresh/bin/metarefresh.php b/modules/metarefresh/bin/metarefresh.php
index <HASH>..<HASH> 100755
--- a/modules/metarefresh/bin/metarefresh.php
+++ b/modules/metarefresh/bin/metarefresh.php
@@ -13,6 +13,8 @@ $baseDir = dirname(dirname(dirname(dirname(__FILE__))));
 /* Add library autoloader. */
 require_once($baseDir . '/lib/_autoload.php');
 
+SimpleSAML_Session::useTransientSession(); /* No need to try to create a session here. */
+
 if(!SimpleSAML_Module::isModuleEnabled('metarefresh')) {
 	echo("You need to enable the metarefresh module before this script can be used.\n");
 	echo("You can enable it by running the following command:\n");
metarefresh: Do not use a session when executing metarefresh from the command line.