View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
09686Bug reportsAuthenticationpublic2016-12-20 08:50
Reporterjelo Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Fixed in Version2.06+ 
Summary09686: You cannot logon to different limesurvey installation in the same webspace
Description

Two limesurvey installations in different paths

www.domain.tld/limesurvey01
www.domain.tld/limesurvey02

Even when logging from different browsers (same IP from ISP) the session from one installation is ending when logging on into the other installation.

Looks like a Cookie / sessionfile problem. Perhaps a different prefix for cookies session will help. Currently the cookie path is not set to the subpath of the installations.

Had these behavior when testing 2.05+ and 2.06 side by side.

Additional Information

Doesn't is related to a special version of LS or webstack like php,mysql or apache. I had seen this behavior from time to time before.

TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build)150612
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionmysql 5.5.X
Server OS (if known)Linux Centos 6.6
Webserver software & version (if known)apache 2.2.X
PHP Version5.4.x

Users monitoring this issue

c_schmitz

Activities

c_schmitz

c_schmitz

2015-06-15 22:18

administrator   ~32372

DO they point to a copy of the same database?

jelo

jelo

2015-06-15 23:02

partner   ~32373

MySQL localhost. Different database different user credentials.

Perhaps a session/cookie prefix can be set in the configuration or set via a random routine. I hadn't had the time to see if two different subdomains would make a difference.

Two cookies are set
PHP Session e.g. PHPSESSID
and
YII_CSRF_TOKEN

Cookie Hostname is www.domain.tld when using subdirectories
Cookie Path is always "/"

When using a subdomain the hostname would always make a difference.

The Cookiepath might has to be set to the subdirectory of the installation to make a difference.

DenisChenu

DenisChenu

2015-06-15 23:11

developer   ~32374

Last edited: 2015-06-15 23:32

Doc issue : cookie path to / By default is OK.

But doc need an update for this https://manual.limesurvey.org/Optional_settings#Session_settings

@jelo:
You can try:
'session' => array (
'cookieParams' => array(
'path' => '/limesurvey02',
),
),
'request' => array(
'csrfCookie' => array( 'path' => '/limesurvey02' )
),

Alternative (not tested)
'session' => array (
'sessionName' => 'SESSID_206', // For example
),

DenisChenu

DenisChenu

2015-06-16 08:23

developer   ~32376

https://manual.limesurvey.org/General_FAQ#2_limesurvey_instance_on_same_domain

c_schmitz

c_schmitz

2015-06-18 10:46

administrator   ~32414

Version 2.06+ Build 150618 released

DenisChenu

DenisChenu

2016-12-20 08:50

developer   ~42569

@mdekker : maybe make another bug report. Because if i understand right:

  • Web installer do the job OK, jelo issue are at contraty : the 2 session are diffrent (security is OK) but open one close the other.
  • Only command installer : broken : same session from one to other

Issue History

Date Modified Username Field Change
2015-06-15 17:19 jelo New Issue
2015-06-15 22:18 c_schmitz Note Added: 32372
2015-06-15 23:02 jelo Note Added: 32373
2015-06-15 23:10 DenisChenu Assigned To => DenisChenu
2015-06-15 23:10 DenisChenu Status new => assigned
2015-06-15 23:11 DenisChenu Note Added: 32374
2015-06-15 23:32 DenisChenu Note Edited: 32374
2015-06-16 08:23 DenisChenu Note Added: 32376
2015-06-16 08:23 DenisChenu Status assigned => resolved
2015-06-16 08:23 DenisChenu Fixed in Version => 2.06+
2015-06-16 08:23 DenisChenu Resolution open => fixed
2015-06-18 10:46 c_schmitz Note Added: 32414
2015-06-18 10:46 c_schmitz Status resolved => closed
2016-12-20 08:26 mdekker Issue Monitored: c_schmitz
2016-12-20 08:50 DenisChenu Note Added: 42569