Skip to content

Commit

Permalink
Fixed issue #4199: Cookie path not set
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8488 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Mar 15, 2010
1 parent 55f59ad commit 7ebd4b4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/classes/phpCAS/CAS/client.php
Expand Up @@ -512,8 +512,8 @@ function CASClient(
session_start();
}
// restore old session vars
$_SESSION = $old_session;
// Redirect to location without ticket.
$_SESSION = $old_session;
// Redirect to location without ticket.
header('Location: '.$this->getURL());
}

Expand Down Expand Up @@ -1585,7 +1585,7 @@ function setPGTStorageFile($format='',
}

// create the storage object
$this->_pgt_storage = &new PGTStorageFile($this,$format,$path);
$this->_pgt_storage = new PGTStorageFile($this,$format,$path);
}

/**
Expand Down Expand Up @@ -1622,7 +1622,7 @@ function setPGTStorageDB($user,
trigger_error('PGT storage into database is an experimental feature, use at your own risk',E_USER_WARNING);

// create the storage object
$this->_pgt_storage = & new PGTStorageDB($this,$user,$password,$database_type,$hostname,$port,$database,$table);
$this->_pgt_storage = new PGTStorageDB($this,$user,$password,$database_type,$hostname,$port,$database,$table);
}

// ########################################################################
Expand Down
Expand Up @@ -41,6 +41,7 @@
session_name("LimeSurveyAdmin");
}

session_set_cookie_params(0,$relativeurl);
if (session_id() == "") @session_start();


Expand Down
1 change: 1 addition & 0 deletions admin/sessioncontrol.php
Expand Up @@ -31,6 +31,7 @@

if (session_id() == "")
{
session_set_cookie_params(0,$relativeurl);
if ($debug==0) {@session_start();}
else {session_start();}
}
Expand Down
1 change: 1 addition & 0 deletions index.php
Expand Up @@ -64,6 +64,7 @@
{
session_name("LimeSurveyRuntime-$surveyid");
}
session_set_cookie_params(0,$relativeurl);
@session_start();


Expand Down
1 change: 1 addition & 0 deletions printanswers.php
Expand Up @@ -58,6 +58,7 @@
{
session_name("LimeSurveyRuntime-$surveyid");
}
session_set_cookie_params(0,$relativeurl);
@session_start();

if (isset($_SESSION['sid'])) {$surveyid=$_SESSION['sid'];} else die('Invalid survey/session');
Expand Down
1 change: 1 addition & 0 deletions register.php
Expand Up @@ -45,6 +45,7 @@
session_name("LimeSurveyRuntime-$surveyid");
}

session_set_cookie_params(0,$relativeurl);
session_start();

// Get passed language from form, so that we dont loose this!
Expand Down
1 change: 1 addition & 0 deletions verification.php
Expand Up @@ -41,6 +41,7 @@
{
session_name("LimeSurveyRuntime-$surveyid");
}
session_set_cookie_params(0,$relativeurl);
@session_start();

// header for png
Expand Down

0 comments on commit 7ebd4b4

Please sign in to comment.