﻿<?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 4  » Session IDs?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 03 Apr 2026 22:13:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Session IDs?</title><link>https://forums.millisecond.com/Topic20716.aspx</link><description>I am running a web script. I want participants to manually enter their IDs. I also want to send a "session ID" through the URL, e.g., &lt;br/&gt;&lt;pre&gt;&lt;a href="http://research.millisecond.com/example/myexperiment.web?sessionid=1"&gt;http://research.millisecond.com/example/myexperiment.web?sessionid=1&lt;/a&gt;&lt;/pre&gt;Can I do this? Will it be recorded? And, more importantly, can I access that info in the script? I'd like to be able to say "present stimuli from this list for session 1 but this other list for session 2." Seems pretty easy, but I can't figure it out. &lt;br/&gt;</description><pubDate>Tue, 14 Feb 2017 16:23:10 GMT</pubDate><dc:creator>jdb</dc:creator></item><item><title>RE: Session IDs?</title><link>https://forums.millisecond.com/Topic20722.aspx</link><description>&lt;div data-id="20717" class="if-quote-wrapper" unselectable="on" data-guid="1487118183711"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20717" 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="20717" 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="20717" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20717"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20716" class="if-quote-wrapper" unselectable="on" data-guid="1487118183711"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20716" 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="20716" 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="20716" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;jdb - Monday, February 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20716"&gt;&lt;div class="if-quote-message-margin"&gt;I am running a web script. I want participants to manually enter their IDs. I also want to send a "session ID" through the URL, e.g., &lt;br/&gt;&lt;pre&gt;&lt;a href="http://research.millisecond.com/example/myexperiment.web?sessionid=1"&gt;&lt;a href="http://research.millisecond.com/example/myexperiment.web?sessionid=1"&gt;http://research.millisecond.com/example/myexperiment.web?sessionid=1&lt;/a&gt;&lt;/a&gt;&lt;/pre&gt;Can I do this? Will it be recorded? And, more importantly, can I access that info in the script? I'd like to be able to say "present stimuli from this list for session 1 but this other list for session 2." Seems pretty easy, but I can't figure it out. &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20716"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can configure the web experiment up to read the "sessionid" query parameter and use it as the script's group id via the web experiment's settings (in the Subject ID's step). The value of the query parameter (e.g. 1 or 2) will be recorded in the data file's 'group' column, and you can access the parameter's value via the script.groupid property, i.e.&lt;br/&gt;&lt;br/&gt;&amp;gt; I'd like to be able to say "present stimuli from this list for session 1 but this other list for session 2."&lt;br/&gt;&lt;br/&gt;If you set up your script to treat this as a standard between-subjects condition, you can base the assignment on the session id provided by the query parameter:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt list1&amp;gt;&lt;br/&gt;/ subjects = (1 of 2)&lt;br/&gt;/ groupassignment = groupnumber&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt list2&amp;gt;&lt;br/&gt;/ subjects = (2 of 2)&lt;br/&gt;/ groupassignment = groupnumber&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;If used as group id, you can access the value of the query parameter at any time in the script via the script.groupid property:&lt;br/&gt;&lt;br/&gt;&amp;lt;text sessionid&amp;gt;&lt;br/&gt;/ items = ("The provided session ID is &amp;lt;%script.groupid%&amp;gt;.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20717"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for the response! I'll give it a try. &lt;br/&gt;</description><pubDate>Tue, 14 Feb 2017 16:23:10 GMT</pubDate><dc:creator>jdb</dc:creator></item><item><title>RE: Session IDs?</title><link>https://forums.millisecond.com/Topic20717.aspx</link><description>&lt;div data-id="20716" class="if-quote-wrapper" unselectable="on" data-guid="1487038087743"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20716" 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="20716" 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="20716" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;jdb - Monday, February 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20716"&gt;&lt;div class="if-quote-message-margin"&gt;I am running a web script. I want participants to manually enter their IDs. I also want to send a "session ID" through the URL, e.g., &lt;br/&gt;&lt;pre&gt;&lt;a href="http://research.millisecond.com/example/myexperiment.web?sessionid=1"&gt;&lt;a href="http://research.millisecond.com/example/myexperiment.web?sessionid=1"&gt;http://research.millisecond.com/example/myexperiment.web?sessionid=1&lt;/a&gt;&lt;/a&gt;&lt;/pre&gt;Can I do this? Will it be recorded? And, more importantly, can I access that info in the script? I'd like to be able to say "present stimuli from this list for session 1 but this other list for session 2." Seems pretty easy, but I can't figure it out. &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20716"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can configure the web experiment up to read the "sessionid" query parameter and use it as the script's group id via the web experiment's settings (in the Subject ID's step). The value of the query parameter (e.g. 1 or 2) will be recorded in the data file's 'group' column, and you can access the parameter's value via the script.groupid property, i.e.&lt;br/&gt;&lt;br/&gt;&amp;gt; I'd like to be able to say "present stimuli from this list for session 1 but this other list for session 2."&lt;br/&gt;&lt;br/&gt;If you set up your script to treat this as a standard between-subjects condition, you can base the assignment on the session id provided by the query parameter:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt list1&amp;gt;&lt;br/&gt;/ subjects = (1 of 2)&lt;br/&gt;/ groupassignment = groupnumber&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt list2&amp;gt;&lt;br/&gt;/ subjects = (2 of 2)&lt;br/&gt;/ groupassignment = groupnumber&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;If used as group id, you can access the value of the query parameter at any time in the script via the script.groupid property:&lt;br/&gt;&lt;br/&gt;&amp;lt;text sessionid&amp;gt;&lt;br/&gt;/ items = ("The provided session ID is &amp;lt;%script.groupid%&amp;gt;.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 13 Feb 2017 18:15:22 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>