View Issue Details

This bug affects 1 person(s).
 16
IDProjectCategoryView StatusLast Update
05173Bug reportsSurvey takingpublic2011-05-25 12:21
Reporterorvil Assigned Toc_schmitz  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.91 
Fixed in Version1.91+ 
Summary05173: Survey shows "Session expired" without reason
Description

In several cases an active survey shows a "Session expired" Error, even after seconds.

In most of the found cases it happens after installing 1.91 after a working 1.9 Version (or sooner).

Reinstalling 1.90 eliminates the problem.

Mentioned in the LS forum at:
orvil: http://www.limesurvey.org/de/forum/deutsches-forum/60855-installation-fehlermeldung-sitzung-abgelaufen#60855
Ernst: http://www.limesurvey.org/de/forum/installation-a-update-issues/60722-got-my-first-survey-done-but-after-activating-it-doesnat-work-anymore#60722
franko1701: http://www.limesurvey.org/de/forum/installation-a-update-issues/60614-session-timeout#60614
onlyrich: http://www.limesurvey.org/de/forum/installation-a-update-issues/60908-re-got-my-first-survey-done-but-after-activating-it-doesnat-work-anymore#60908
arpsh: http://www.limesurvey.org/de/forum/installation-a-update-issues/60495-admin-login-loop-and-session-expiry-problems-after-191-upgrade#60495
tommyedlund: http://www.limesurvey.org/de/forum/installation-a-update-issues/60025-survey-halts-after-welcome-page-after-upgrade#60025

Maybe a similar problem, but no valid solution for all cases.
b1c1: http://www.limesurvey.org/de/forum/installation-a-update-issues/60551-re-session-has-expired-seriously#60551

Steps To Reproduce
  • install 1.91 (upgrading from a working 1.90 instllation)
  • activate a survey -> not possible to save (or go to next page)
  • reinstall 1.90: everything is fine
TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)10062
I will donate to the project if issue is resolvedNo
BrowserFF3, FF4, IE8, Opera
Database type & version5
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.2.17

Relationships

has duplicate 05172 closedc_schmitz 1.91 Cannot take survey: Session Expired Error Message 

Users monitoring this issue

There are no users monitoring this issue.

Activities

orvil

orvil

2011-05-18 11:28

reporter   ~15052

Rechecked it on a local system (moewes portable):

  • limesurvey 1.91+ build 10089
  • php 5.2.8
  • MySQL5 (5.1.30)
  • Apache2 (2.2.11)

same result, error warning:

"FEHLER
Es tut uns leid, aber Ihre Sitzung ist abgelaufen.
Entweder sind Sie zu lange inaktiv gewesen, Sie haben Cookies deaktiviert oder es gab ein Problem mit Ihrer Verbindung.
Bitte kontaktieren Sie Your Name ( your@email.org ) für weitere Unterstützung."

register_globals on or off does not affect the problem
session.save_path is set to a valid path

c_schmitz

c_schmitz

2011-05-18 22:58

administrator   ~15057

Last edited: 2011-05-18 23:30

No problem here, can't reproduce.
Unless we get direct access to such a system to debug it there is not much we can do.

Dumb question: Have you tried clearing your cache and cookies?

jquinter

jquinter

2011-05-19 01:43

reporter   ~15063

I've faced the same issue on both versions 1.90 and 1.91 (even latest one, 1.91 plus). Here's how I solved (I've uploaded the file index.php including what I describe below).

In the file index.php, locate the following block:

if (!isset($_SESSION['s_lang']) && (isset($move)) )
// geez ... a session time out! RUN!
{

-- WHAT I DISCOVERED --
Right there it is checked that the s_lang parameter is set (and thereis some command in the variable $move, if you are to answer some survey, it should be "movenext"). Well, s_lang is correctly set before somewhere else, but for some weird reason it is lost just right before that point in the code (you can monitor $_SESSION array if you want to check this).

-- HOW I SOLVED IT --
I just added the following few lines

if (empty($_SESSION))
@session_start();

-- RESULT --

Here's how your index.php file should look like after including the fix (I include a few lines of context)

if (isset($_SESSION['srid']))
{
$saved_id = $_SESSION['srid'];
}

if (empty($_SESSION))
@session_start();

if (!isset($_SESSION['s_lang']) && (isset($move)) )
// geez ... a session time out! RUN!
{

c_schmitz

c_schmitz

2011-05-19 08:19

administrator   ~15065

jquinter, thank you for your patch but the thing is that your patch deals with a differnt issue than reported here (both 1.90+ and 1.91+ not working).

THe issue above is reported to be: Works on 1.90+ and does not work on 1.91+. I yet have to see such an installation.

Mazi

Mazi

2011-05-19 10:43

updater   ~15068

Can anybody provide access to such a system? Of course all information will be kept confidential.

You can forward login details to Carsten at carsten.schmitz(at)limesurvey.org

orvil

orvil

2011-05-19 13:34

reporter   ~15070

Last edited: 2011-05-19 13:34

Hi,

please look at http://www.limesurvey.org/de/forum/deutsches-forum/61028-problem-nach-update-auf-191#61091

There you will find link to a portable system with a test-survey to check out.

c_schmitz

c_schmitz

2011-05-19 14:49

administrator   ~15073

I downloaded the ZIP file, but on running the apache it crashed. I downloaded a clean MOWES installation from the vendors page, installed it and copied over the Limesurvey dir and the limesurvey database from the provided ZIP file. It works like a charm here so it is still not reproducable and must be some issue with your system.

c_schmitz

c_schmitz

2011-05-19 14:49

administrator   ~15074

I guess the direct access to such a system would be more viable.

orvil

orvil

2011-05-19 15:14

reporter   ~15075

Last edited: 2011-05-19 15:16

ok, so I'll install a separate 1.91 on my account, but this will take a while

btw. would you please be so kind to upload your working copy of mowes+lime?

c_schmitz

c_schmitz

2011-05-19 17:36

administrator   ~15076

Well, it works here so I am not in a hurry :p

Just uploading it - will be availabe under httP://www.limesurvey.org/mowes_portable_lime.zip

orvil

orvil

2011-05-20 07:27

reporter   ~15079

thx :-)) I'll test it.

c_schmitz

c_schmitz

2011-05-23 00:37

administrator   ~15088

Open index.php, go to line 81 and replace the line

if (!isset($_SESSION))

with

if (!isset($_SESSION) || empty($_SESSION))

This problem affect all installations which have 'register_globals' activated in the PHP configuration (which you should rather not have activated in general for security purposes - any software relying on register_globals to be activated should be shot dead and buried)

Thanks to Gunnar Grieger for access to an affected system. Fixed in rev. 10113

c_schmitz

c_schmitz

2011-05-25 12:21

administrator   ~15100

Released new 1.91+ version.

Issue History

Date Modified Username Field Change
2011-05-17 18:42 orvil New Issue
2011-05-18 11:28 orvil Note Added: 15052
2011-05-18 22:58 c_schmitz Note Added: 15057
2011-05-18 22:59 c_schmitz Assigned To => c_schmitz
2011-05-18 22:59 c_schmitz Status new => assigned
2011-05-18 23:30 c_schmitz Note Edited: 15057
2011-05-19 01:37 jquinter File Added: index_sessionexpired_fix.zip
2011-05-19 01:43 jquinter Note Added: 15063
2011-05-19 08:19 c_schmitz Note Added: 15065
2011-05-19 10:43 Mazi Note Added: 15068
2011-05-19 10:43 Mazi Status assigned => feedback
2011-05-19 13:34 orvil Note Added: 15070
2011-05-19 13:34 orvil Status feedback => assigned
2011-05-19 13:34 orvil Note Edited: 15070
2011-05-19 14:49 c_schmitz Note Added: 15073
2011-05-19 14:49 c_schmitz Note Added: 15074
2011-05-19 15:14 orvil Note Added: 15075
2011-05-19 15:15 orvil Note Edited: 15075
2011-05-19 15:16 orvil Note Edited: 15075
2011-05-19 17:36 c_schmitz Note Added: 15076
2011-05-20 07:27 orvil Note Added: 15079
2011-05-23 00:37 c_schmitz Note Added: 15088
2011-05-23 00:37 c_schmitz File Deleted: index_sessionexpired_fix.zip
2011-05-23 00:38 c_schmitz Status assigned => resolved
2011-05-23 00:38 c_schmitz Fixed in Version => 1.91+
2011-05-23 00:38 c_schmitz Resolution open => fixed
2011-05-25 12:21 c_schmitz Note Added: 15100
2011-05-25 12:21 c_schmitz Status resolved => closed
2011-05-26 09:17 c_schmitz Relationship added has duplicate 05172