diff --git a/components/install/process.php b/components/install/process.php
index accfe60..c588727 100755
--- a/components/install/process.php
+++ b/components/install/process.php
@@ -18,6 +18,7 @@
$users = $path . "/data/users.php";
$projects = $path . "/data/projects.php";
$active = $path . "/data/active.php";
+ $sessions = $path . "/data/sessions";
$config = $path . "/config.php";
//////////////////////////////////////////////////////////////////////
@@ -112,7 +113,16 @@ if (!file_exists($users) && !file_exists($projects) && !file_exists($active)) {
$project_data = array("name"=>$project_name,"path"=>$project_path);
saveJSON($projects, array($project_data));
-
+
+ /**
+ * Create sessions path.
+ */
+
+ if ( ! is_dir( $sessions ) ) {
+
+ mkdir( $sessions, 770 );
+ }
+
//////////////////////////////////////////////////////////////////
// Create Users file
//////////////////////////////////////////////////////////////////
diff --git a/components/update/update.php b/components/update/update.php
index 85c5515..b1baaab 100755
--- a/components/update/update.php
+++ b/components/update/update.php
@@ -170,6 +170,8 @@ class updater {
function update() {
+ $sessions = "../../data/sessions";
+
echo "";
if ( ! $this->download() ) {
@@ -186,6 +188,17 @@ class updater {
echo "";
+ //Add Sessions path if not there.
+
+ /**
+ * Create sessions path.
+ */
+
+ if ( ! is_dir( $sessions ) ) {
+
+ mkdir( $sessions, 770 );
+ }
+
$src = $this->path . "/codiad-master/";
$src_folder = $this->path . "/codiad-master";
$dest = $this->path . "/";