diff --git a/.gitignore b/.gitignore
index 0fd67c099cd35dd207a9e05b353e49fbadfee4eb..c86f6fd27915e3ca0b2a803f0091acaee2fcc432 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
 vagrant/dev/.vagrant
 data
-
+tmp
diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php
index 3aa55554882e45a8f26ed36bf9e5f95111ddf8cc..8e27de433ebd8cb69d68429594f67bb392862d4b 100644
--- a/plugins/cas_auth_unl/start.php
+++ b/plugins/cas_auth_unl/start.php
@@ -142,7 +142,7 @@ class UnlCAS {
         $driver = new Stash\Driver\FileSystem();
 
         // Setting a custom path is done by passing an options array to the constructor.
-        $options = array('path' => sys_get_temp_dir() .'/elgg_session_map_' . md5(__DIR__));
+        $options = array('path' => __DIR__ .'/../../tmp/elgg_session_map');
         $driver->setOptions($options);
 
         $pool = new Stash\Pool($driver);