Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

endStudy removing SessionData

Hello,

I have a series of jsPsych tasks running with JATOS.

I use sessionData between my tasks, which I also want to access after all tasks are completed. If my series of tasks is NOT completed, I can access my sessionData. However, if all tasks are completed my code calls jatos.endStudy() which redirects the user to my lab website. The problem is that the sessionData variable is now empty!

Can I redirect my user AND keep my sessionData?

Thank you,

Jason

Comments

  • I see this means that endStudy is performing exactly as it is designed to work. I will have to find a workaround.

  • Hi Jason,

    Exactly. One possibility, if your website is not too complex, is to make the last component of your JATOS study a copy of your website, containing all the information that you want people to see.

    Hope this helps

    Elisa

  • I agree with Elisa, if you redirect to a page outside of JATOS handling (your lab page), you cannot access any session data anymore (or only with some serious effort). I'd go with Elisa's proposal and add a last component as your lab page. But why would you like to access the session data there? Maybe it's even easier to use URL query parameter to pass on information to your lab page? Just an idea.

Sign In or Register to comment.