﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Sessions Inquiry</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 11:43:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Sessions Inquiry</title><link>https://forums.millisecond.com/Topic30719.aspx</link><description>To whom it may concern,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a question regarding sessions. I understand that it enables tasks based on the session id. It was my understanding that Millisecond keeps track of session numbers, i.e. it will know that a participant is on a second session if they completed their first session. We created our experiment with a session set up for each study visit, but noticed that in piloting, it allowed one of our RAs to complete tasks even after her last (fourth) session. I'm wondering how we can make sure that the Millisecond tasks won't allow participants to complete millisecond tasks after they've completed their final session? Below is the experiment script for your reference; let me know if there is any other clarifying info I can provide.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;// session 1&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (1 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 2 &lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (2 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 3&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (3 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 4&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (4 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;</description><pubDate>Thu, 04 Feb 2021 21:39:07 GMT</pubDate><dc:creator>dillonk</dc:creator></item><item><title>RE: Sessions Inquiry</title><link>https://forums.millisecond.com/Topic30722.aspx</link><description>Thank you!</description><pubDate>Thu, 04 Feb 2021 21:39:07 GMT</pubDate><dc:creator>dillonk</dc:creator></item><item><title>RE: Sessions Inquiry</title><link>https://forums.millisecond.com/Topic30720.aspx</link><description>&lt;blockquote data-id="30719" class="if-quote-wrapper" unselectable="on" data-guid="1612472661473" id="if_insertedNode_1612472659869" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30719" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="30719" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="30719" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;dillonk - 2/4/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30719"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;To whom it may concern,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a question regarding sessions. I understand that it enables tasks based on the session id. It was my understanding that Millisecond keeps track of session numbers, i.e. it will know that a participant is on a second session if they completed their first session. We created our experiment with a session set up for each study visit, but noticed that in piloting, it allowed one of our RAs to complete tasks even after her last (fourth) session. I'm wondering how we can make sure that the Millisecond tasks won't allow participants to complete millisecond tasks after they've completed their final session? Below is the experiment script for your reference; let me know if there is any other clarifying info I can provide.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;// session 1&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (1 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 2 &lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (2 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 3&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (3 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;// session 4&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "cuedgonogo.iqx"&lt;br/&gt;/ file = "emotiondotprobe.iqx"&lt;br/&gt;/ sessions = (4 of 4)&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30719"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt; We created our experiment with a session set up for each study visit, but noticed that in piloting, it allowed one of our RAs to complete tasks even after her last (fourth) session.&lt;br/&gt;&lt;br/&gt;The session number the server keeps track of ticks up by one with every visit of the respective participant. Underlying the determination which session is administered is simple modulo arithmetic: session number modulo number of sessions. So:&lt;br/&gt;&lt;br/&gt;1 modulo 4 = 1 -&amp;gt; Scripts for session #1&lt;br/&gt;2 modulo 4 = 2 -&amp;gt; Scripts for session #2&lt;br/&gt;3 modulo 4 = 3 -&amp;gt; Scripts for session #3&lt;br/&gt;4 modulo 4 = 0 -&amp;gt; Scripts for session #4&lt;br/&gt;5 modulo 4 = 1 -&amp;gt; Scripts for session #1&lt;br/&gt;6 modulo 4 = 2 -&amp;gt; Scripts for session #2&lt;br/&gt;and so forth.&lt;br/&gt;&lt;br/&gt;This is the expected behavior and cannot currently be changed.&lt;br/&gt;&lt;br/&gt;What you could do to absolutely prevent this would be to define a script.abort(true) condition in e.g. the go-nogo script that simply terminates the entire batch if a session number greater 4 is encountered. Eg.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (script.sessionid &amp;gt; 4) script.abort(true);&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 04 Feb 2021 21:12:03 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>