Check out the LimeSurvey source code on GitHub!

session expired solutions don't work

More
6 years 10 months ago - 6 years 10 months ago #40893 by Dondebile
Hi,

I get an error message saying
"ERROR
We are sorry but your session has expired.
Either you have been inactive for too long, you have cookies disabled for your browser, or there were problems with your connection."

Of course I browsed as many forum posts to this topic as possible and apply the solutions. Unfortunately none of them worked.

I'm using limesurvey version Version 1.87+ Build 8518

Here's what I did so far:


- raising $sessionlifetime in config.php
- raising session.cookie_lifetime = 7200 in php.ini)
- my firefox browser uses cookies until they are expired
- php.ini on server uses cookies and only cookies
- tried to insert ini_set('session.use_trans_sid', true); ini_set('session.use_cookies', false); into index.php (deleted it again later)
- rised $memorylimit = "16M"; to $memorylimit = "1024M"; or "32M"; respectively in config.php
- rising session duration in global settings in the user interface
- rising session.gc_maxlifetime = 7200 in php.ini


- I did NOT change session.cookie_path = /, and session.cookie_domain = in the php.ini (because I don't know what or how to fill in the information there)


Please can anybody help? My study has to run in a week and I'm just getting absolutely crazy because I don't know what to do. Of course I'll also donate if I get this working, you guys are doing a great job.

Thanks
Jürgen
Last Edit: 6 years 10 months ago by Dondebile.

Please Log in to join the conversation.

More
6 years 10 months ago #40902 by Mazi
Did you try to raise session lifetime in your php.ini file?

Always remember to restart your webserver after having changed such settings.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 10 months ago #40921 by Dondebile
yes I did (sorry forgot to mention...).this is what is the state in php.ini in this moment:
session.gc_maxlifetime = 7200

any other suggestions? please :)

Please Log in to join the conversation.

More
6 years 10 months ago #40929 by Dondebile
By the way: I don't have a local apache server, I've bought webspace at fatcow.com and I can't restart that server, can I?

Please Log in to join the conversation.

More
6 years 10 months ago #40935 by DenisChenu
Did you use url_rewriting ?

I have the same problem with links like that :
mylimesurvey/limesurvey/XXXXX/lang-fr.
(see google )

I look for my problem this week end if i can, but maybe we had the same problem.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
6 years 10 months ago #40936 by Dondebile
nope. No url_rewriting found in php.ini, index.php or config.php.

Please Log in to join the conversation.

More
6 years 10 months ago #40940 by tpartner
This maybe a dumb question but have you tried another browser to see if it's a cookie problem?

Also, check for URL rewriting in your .htaccess file (although, it doesn't sound like a rewrite problem).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #40945 by Dondebile
also no url_rewriting in htaccess.txt found. It says RewriteEngine On at the top if that helps anything.

It also didn't work for Internet Explorer. But anyways all the survants will use firefox on prepared laptops.

I also installed Drupal on my server. When I login there, I don't have a problem with the sessionlifetime.

Also when I try to create a survey and I am inactive for more than 2-3minutes it will log me out. Is that normal?
Last Edit: 6 years 10 months ago by Dondebile.

Please Log in to join the conversation.

More
6 years 10 months ago #41034 by Mazi
Please contact your provider to ask what else you can do to raise session lifetime.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 10 months ago #41090 by Dondebile
Solved it. It was indeed a server problem. This is a solution for all you out there with fatcow webspace:
Fatcow seems to have two php.ini. One you can access via the File Manager (Website > Filemanager) (let's call it php.ini1), one you can access via the menu Scripting and Add-Ons > CGI and scripted language support > PHP scripting (let's call it php.ini2). php.ini1 only contains one line of code: register_globals = false, php.ini2 contains a lot of code.

Solution: Simply delete the php.ini1 in the filemanager. This is also the php.ini you can access via a ftp-programm like filezilla, so if you wish you can also delete it there.

I don't know if you have to insert the register_globals = false from php.ini1 into php.ini2, but my survey worked perfectly for me now, concerning the mentioned problem.

Thank you all your time and energy, I'm really appreciating that. Yes I will donate now.

Please Log in to join the conversation.

More
6 years 9 months ago #41122 by Mazi
Thanks for your feedback.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago #61070 by jquinter
Hello. If anybody else faces this same problem, you could check what I discovered on this issue in the bug tracker.

Please refer to

bugs.limesurvey.org/view.php?id=5173#c15063

There I explain an alternative solution. Notice I've uploaded the file containing the fix.

Please Log in to join the conversation.

More
5 years 7 months ago #62871 by BodasDeSangre
Hello Everybody,
I have a similar issue, my limesurvey installation is running on an intranet, the problem is: when i execute a survey and press the "Next" button (it can happen in any page of the survey and in any time), the browser shows: "We are sorry but your session has expired....".

I have read about it but the solution did not work for me, could you help me please?

Thank you very much.

pd: Excuse my english please, I'm learning.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form