<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Session ID</title><link>https://www.aras.com/community/f/development/37998/session-id</link><description>Is there a way I can retrieve the current session id from a method?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Session ID</title><link>https://www.aras.com/community/thread/9526?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 11:18:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0b4cd072-b127-4b87-ba1a-ac8f3cc31222</guid><dc:creator>ddidonato</dc:creator><description>&lt;p&gt;Thanks Angela, that worked. It also works if I rewrite my code to VB using CStr(CCO.Session(&amp;quot;arasSESSID&amp;quot;)). The arasSESSID retrieves the current session id. TY!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Session ID</title><link>https://www.aras.com/community/thread/9525?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 13:38:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c5cdc601-133d-402f-8e73-7869865d30ba</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;CStr is a VB function, not a C# function. Use something like this: CCO.Session["arasSESSID"].ToString();&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My first post showed a variant to get the ASP.NET_SessionId as stored in the cookies.&amp;nbsp;Where did you find the information about &amp;quot;arasSESSID!? Which session id does this one reference to? Can you give some insights to your use case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Session ID</title><link>https://www.aras.com/community/thread/9518?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 16:40:13 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e8a395d4-3217-4e2a-8982-f27b78494a7d</guid><dc:creator>ddidonato</dc:creator><description>&lt;p&gt;That didn&amp;#39;t work. Here is the code Below is the code I&amp;#39;m trying to use it for:&lt;/p&gt;
&lt;p&gt;string xx = CStr(CCO.Session(&amp;quot;arasSESSID&amp;quot;));&lt;br /&gt;for (int i = 0 ; i&amp;lt;this.getItemCount() ; i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Item currentW = this.getItemByIndex(i);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String SQL = &amp;quot;Select (SELECT TOP(1) MIN_PORTAL_STORE_ACCOUNTS.CONTACT_ID FROM MIN_PORTAL_STORE_ACCOUNTS WHERE MIN_PORTAL_STORE_ACCOUNTS.SESSION_ID = &amp;quot; +&amp;nbsp; &amp;quot;&amp;#39;&amp;quot; + xx + &amp;quot;&amp;#39;&amp;quot; + &amp;quot;)&amp;quot; + &amp;quot; as nb&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SQL = String.Format(SQL,currentW.getProperty(&amp;quot;config_id&amp;quot;,&amp;quot;error&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Item res = currentW.getInnovator().applySQL(SQL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!res.isError())&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;string nb = res.getProperty(&amp;quot;nb&amp;quot;,&amp;quot;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentW.setProperty(&amp;quot;id&amp;quot;,nb);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return this;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Session ID</title><link>https://www.aras.com/community/thread/9513?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 12:57:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a005a3f6-2ee7-43e8-99eb-c18a5e7e9075</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Maybe something like this?&lt;/p&gt;
&lt;p&gt;HttpContext.Current.Session.SessionID&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>