Check out the LimeSurvey source code on GitHub!

ERROR > Session has expired !

More
5 years 2 months ago #69044 by DenisChenu

Mazi wrote: Guys, can you please add these helpful instructions at the <a href=' www.docs.limesurvey.org/tiki-index.php?p...tions+for+LimeSurvey '>installation</a> FAQ so other will benefit from your findings as well!?

Thanks!

Shnoulle wrote: PS: wikified : docs.limesurvey.org/Installation+FAQ#Lim...on_has_expired_quot_ before Mazi asking :P

:P

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
5 years 2 months ago #69047 by Maximilien
Wow, that was fast ! And it explains why I didn't see anything before my initial question and discovered that when Mazi told about explaining it in the FAQ :)

Well done Shnoulle ;-)

Please Log in to join the conversation.

More
5 years 2 months ago #69049 by DenisChenu

Maximilien wrote: Wow, that was fast ! And it explains why I didn't see anything before my initial question and discovered that when Mazi told about explaining it in the FAQ :)

Well done Shnoulle ;-)

Thanks to you, you corrected before Mazi ask too !!

:)

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
4 years 9 months ago #78839 by deeringa
Hi all! I am also experiencing this same problem. I am not running Suhosin. I've searched the phpinfo() output for the word, and it's not there. Are there any other known solutions for this? Any other server settings I could try? If absolutely necessary, I can post the phpinfo(), but I'd rather not as I am very wary of posting server settings to a public forum :)

Please Log in to join the conversation.

More
4 years 9 months ago #78840 by holch
As long as no one knows which server it is for, I don't see much of a problem.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 9 months ago #78860 by Mazi
Please also check the server's error log for further hints. Sometimes some settings like MAX_POST_VARS or MEMORY_LIMIT cause similar problems.


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
4 years 8 months ago - 4 years 8 months ago #79623 by deeringa
Thank you for your prompt responses, and I appologize for the delay in mine. I didn't get notified of the responses for some reason. Perhaps they got sent to junk. Anyway, I tail -f'd a couple of the server's logs while attempting to access a newly created survey, and nothing came up. Specifically the error and access logs. I'm attaching the phpinfo() saved as a .htm page. Please forgive my paranoia, as I have removed anything even resembling identifiable information. I don't think you need IP addresses or usernames to help make a diagnosis. :) I've done some digging, and I can't find the recommended MAX_POST_VARS or MEMORY_LIMIT. I don't see a MAX_POST_VARS, but I do see MAX_INPUT_VARS of 1000, and a MEMORY_LIMIT of 128MB. Obviously, I can up these as necessary. Could you post the recommended values here so I can give that a try? Would anything be showing up in the logs if either of those were the problem? Thank you SO much in advance for your help!

PLEASE NOTE: I didn't see the attached .htm file. So I'm hoping if I change the extension to .txt it will be attached. Please remove the .txt from the end to view the file.
Attachments:
Last Edit: 4 years 8 months ago by deeringa. Reason: I did not see the attached .htm file on my post. Re-trying after renaming to .txt

Please Log in to join the conversation.

More
4 years 8 months ago #79822 by deeringa
Any update on this?

Please Log in to join the conversation.

More
4 years 8 months ago #79831 by deeringa
I am beginning to get a bit desperate. This project is scheduled to go live in a couple days, and I'm still getting this Sessions has expired message for every created survey! I've checked the MAX_POST_VARS and MEMORY_LIMIT. MPV = 1000 and ML = 128M. I found in the documentation that 128M should be perfectly acceptable. I can't find anything for MPV. Please help!!

Please Log in to join the conversation.

More
4 years 8 months ago #79834 by lex
it helped me to set max_input_vars to 5000

Please Log in to join the conversation.

More
4 years 8 months ago #79878 by deeringa
Thanks, lex. I'll give that a shot.

Please Log in to join the conversation.

More
4 years 8 months ago #79880 by deeringa
Nope. Didn't work. I'm still getting the

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.

Please Log in to join the conversation.

More
4 years 8 months ago - 4 years 8 months ago #79882 by deeringa
I've found where the error is occurring. In index.php on or about line 310, there's a conditional statement looking to see if _SESSION has been set. Just before I print_r($_SESSION), and it is empty. So I do the following:
if ( empty($_SESSION['s_lang']) ) $_SESSION['s_lang'] = 'en';

And that takes care of it. However, I'd rather not trick it in this manner. Where does the $_SESSION variable get set? I know the link to the survey has a 'lang' variable in the GET string.
Last Edit: 4 years 8 months ago by deeringa.

Please Log in to join the conversation.

More
4 years 8 months ago #80117 by Mazi
I think the SESSION get's populated when first calling a survey and e.g. passing the lang parameter.


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
4 years 8 months ago #80346 by mslavin
I feel I may be encountering the same problems. I'm fairly new to this, so it's quite possible my problem is something considerably more basic.

From my homepage, I link to my survey with the link provided by the admin page: foo.bar/rsvp/index.php?sid=96357&lang=en

If I follow that link, everything goes swimmingly. However, at the end of the survey, I link users back to foo.bar. If they follow the link back to the survey, they complete the first section, and then click "Next," and they're redirected to the index of available surveys.

If they select the survey, they can complete it fine. However, if they follow the link back home and try the survey again, the same redirect to the index happens. Effectively, only one out of two attempts completes the survey while "looping" like this.

Again, I'm a newby. This is a freshly created domain, and I'm hosted my Namecheap. I haven't tinkered much with any setting prior to encountering this problem. I'm running LimeSurvey Version 1.92+ Build 120509, I've tried making the edits to php.ini that have been discussed, but it has had no bearing on the problem.

I'd appreciate any help you all may have. If I'm in way over my head, I won't be offended if you tell me to scram and look for a different tool.

Thanks!

Please Log in to join the conversation.

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