Welcome, Guest
Username: Password: Remember me

TOPIC: ERROR > Session has expired !

Re: ERROR > Session has expired ! 2 years 5 months ago #79878

  • deeringa
  • deeringa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Thanks, lex. I'll give that a shot.
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #79880

  • deeringa
  • deeringa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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.
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #79882

  • deeringa
  • deeringa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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: 2 years 5 months ago by deeringa.
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #80117

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #80346

  • mslavin
  • mslavin's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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!
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #80470

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
When opening the survey at Limesurvey by clicking the "green tire" icon top left, what is the URL?

You might have to add ...&newtest=Y to the survey URL.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #80555

  • mslavin
  • mslavin's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks for the reply, Mazi! I didn't get around to trying it out until now.

The "green gear" links to foo.bar/rsvp/index.php?sid=44955&newtest=Y&lang=en

I updated the link on the homepage to add the ...&newtest=Y, but it still seems to redirect to the index of surveys every second time.
The administrator has disabled public write access.

Re: ERROR > Session has expired ! 2 years 5 months ago #80556

  • mslavin
  • mslavin's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I decided to see if directing users directly to the index would help, but to no avail; they'd still get kicked to the index every 2nd time they tried to submit answers.

I tried making redundant changes to the config.php file, reflecting the changes I'd made to php.ini, and it seems to have done the trick, to a degree.

If I refer people to the survey index, and they enter the survey from the list, everything runs smoothly. If I go back to sending them directly into the survey, it kicks them to the index every 2nd submission.

I think I'm okay with directing users to the index for now, and I'll keep prodding til I find a way to do otherwise. Now the only task is to figure out why the survey index reverts back to the default template rather than the custom one; but that's so far outside of this topic that I'll make a separate post if I can't crack it on my own.

Thanks for all the guidance, yall.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.169 seconds
Donation Image