<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>G'day Donal,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>you could try :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>$oLayer<SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>-> set('classitem','SessionID');</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN>$oClass<SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN> = ms_newClassObj($oLayer);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN>$oClass -> setExpression($sessionvalue);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN></DIV><DIV>The expression might need to be quoted, I don't know if setExpression does this? get it to output ($map->save()) a mapfile and check.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>good luck.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>cheers</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben Madin</DIV><DIV>REMOTE INFORMATION</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>t : +61 8 9192 5455</DIV><DIV>f : +61<SPAN class="Apple-converted-space"> </SPAN>8 9192 5535</DIV><DIV>m : 0448 887 220</DIV><DIV>Broome   WA   6725</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</A></DIV><BR class="Apple-interchange-newline"></SPAN><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"><SPAN class="Apple-style-span" style="white-space: pre; ">                                   </SPAN></SPAN>Out here, it pays to know...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>