I've been working on a bug in BoltWire on and off for days and can't figure it out. Thought I would throw it out to the list to see if anyone has an idea...
Near the very end of the engine script (before the utilities) after all the output for the entire page has been generated and store in a variable called $out I have these final 3 lines: p($_SESSION); // debugging here //echo($out); // should be uncommented exit(); This always generates the correct $_SESSION variable, confirmed by this simple php script (called test.php) which I call in a separate browser window to verify my session value is set correctlly . <?php session_start(); print_r($_SESSION); session_write_close(); die(); However, as soon as I uncomment the echo line something changes, and test.php gives me a completely different value. It acts as if something in the act of outputting the page messes up the session value--which shouldn't be as far as I can tell. If I wrap $out in htmlentities() it works again... Weirder still, if I do this p($_SESSION); // debugging here echo($out); // should be uncommented p($_SESSION); // more debugging here exit(); The session value is correct in both instances. But when I check it in test.php the value is different again. Comment out the echo, and it works exactly as expected. I've also tried using print_r instead of echo. Same results. I have tried this numerous times. Curiously, the wrong session value is what would be produced if BoltWire constructed an action.missing page, but just printing the $out value shouldn't do that. I'm at a loss. Open to any ideas... This is very strange... Most likely the session info is getting stored in different locations somehow, or with different id's, though I'm not sure why. I'm also tinkering with cleanURL's which seem to have started this problem. It was also doing it before on one of my mobile skins--and I had to turn it off to get my forms to work. Any suggestions to this perplexer would be appreciated... Cheers, Dan -- You received this message because you are subscribed to the Google Groups "BoltWire" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/boltwire. For more options, visit https://groups.google.com/d/optout.
