<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">I inserted the session_id line as the second in my PHP config and still get identical results.</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">When Markup calls the function and the function modifies a variable of global scope what would cause the variable to revert to its unmodifed setting?<VAR id=yui-ie-cursor></VAR></SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Peter Bowers <pbowers@pobox.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Dave <smartucus86@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, April 17, 2011 12:30 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [pmwiki-users] How do I get $EditRedirectFmt also return Page Text Variables?<BR></FONT><BR>On Sun, Apr 17, 2011 at 2:04 AM, Dave <<A href="mailto:smartucus86@yahoo.com" ymailto="mailto:smartucus86@yahoo.com">smartucus86@yahoo.com</A>> wrote:<BR>>      echo
 "1-".$_SESSION['foo']."<br>";          //output = "1-" - expected<BR>> output BEFORE EDIT>SAVE<BR>><BR>>      function CSName ($val) {<BR>>       $_SESSION['foo'] = $val;<BR>>       echo "2-".$_SESSION['foo']."<br>";         //output = "2-RMS"<BR>> - expected output<BR>>      }<BR>>      echo "3-".$_SESSION['foo']."<br>";<BR>>      #echo " #B-".$CompSName;                     //output = "3-" - expected<BR><BR>Try inserting this line early on in your config.php:<BR><BR>        if(!session_id()) session_start();<BR><BR>I don't remember the exact
 rationale, but sometimes that's needed -<BR>pmwiki does it later in the process, if I remember correctly, so maybe<BR>you don't have access to your session yet in your config.php...<BR><BR>-Peter<BR><BR><BR></DIV></DIV></div></body></html>