Session ID

Is there a way I can retrieve the current session id from a method?

Parents
  • That didn't work. Here is the code Below is the code I'm trying to use it for:

    string xx = CStr(CCO.Session("arasSESSID"));
    for (int i = 0 ; i<this.getItemCount() ; i++)
    {
        Item currentW = this.getItemByIndex(i);
            String SQL = "Select (SELECT TOP(1) MIN_PORTAL_STORE_ACCOUNTS.CONTACT_ID FROM MIN_PORTAL_STORE_ACCOUNTS WHERE MIN_PORTAL_STORE_ACCOUNTS.SESSION_ID = " +  "'" + xx + "'" + ")" + " as nb";
            SQL = String.Format(SQL,currentW.getProperty("config_id","error"));
            Item res = currentW.getInnovator().applySQL(SQL);

            if (!res.isError())
            {
                string nb = res.getProperty("nb","");
                currentW.setProperty("id",nb);
            }
    }

    return this;

Reply
  • That didn't work. Here is the code Below is the code I'm trying to use it for:

    string xx = CStr(CCO.Session("arasSESSID"));
    for (int i = 0 ; i<this.getItemCount() ; i++)
    {
        Item currentW = this.getItemByIndex(i);
            String SQL = "Select (SELECT TOP(1) MIN_PORTAL_STORE_ACCOUNTS.CONTACT_ID FROM MIN_PORTAL_STORE_ACCOUNTS WHERE MIN_PORTAL_STORE_ACCOUNTS.SESSION_ID = " +  "'" + xx + "'" + ")" + " as nb";
            SQL = String.Format(SQL,currentW.getProperty("config_id","error"));
            Item res = currentW.getInnovator().applySQL(SQL);

            if (!res.isError())
            {
                string nb = res.getProperty("nb","");
                currentW.setProperty("id",nb);
            }
    }

    return this;

Children