View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04558Bug reportsSurvey editingpublic2010-08-23 18:49
Reporterjdalegonzalez Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.90+ 
Summary04558: sessioncontrol sets session cookie incorrectly when limesurvey is installed in the webroot - rather than a subdirectory
Description

This makes "preview" not work. This issue is with the line...
session_set_cookie_params(0,$relativeurl);

When limesurvey is installed in the web root, $relativeurl is "". Instead of setting the cookie URL to "" it should be set to "/".

I modified the line to look like..
session_set_cookie_params(0,!empty ($relativeurl) ? $relativeurl : "/");

Steps To Reproduce

1) Install limesurvey in the root
2) Create at least two users
3) Create a survey as one user and give permissions to the other user to access it.
4) Login as the second user, choose the survey and click the green gear.
5) You'll see a "ERROR" "We're sorry but you don't have permission to..." message.
6) If you print out $_SESSION, you'll notice that it's empty, even though the session_name matches the one set when logged into the admin screen.
7) Change the code as indicated above and notice the problem goes away.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)8488
I will donate to the project if issue is resolved
BrowserAll
Database type & versionAll
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.2.9

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-08-23 18:49

administrator   ~12686

This is fixed in the latest version. Please update.

Issue History

Date Modified Username Field Change
2010-08-23 18:02 jdalegonzalez New Issue
2010-08-23 18:49 c_schmitz Note Added: 12686
2010-08-23 18:49 c_schmitz Status new => closed
2010-08-23 18:49 c_schmitz Assigned To => c_schmitz
2010-08-23 18:49 c_schmitz Resolution open => fixed
2010-08-23 18:49 c_schmitz Fixed in Version => 1.90+
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing