That's a toughie, zaansari. In theory, it should work. However, persistent connections really are supposed to do one thing: reduce the overhead of making a SQL connection on a busy server. Other than that, a persistent connection is supposed to act exactly like a regular connection. This is according to the manual.
If that truly is the case, then I think persistent connections don't work the way you (or MySQL) expects them to. I'd say, if you can't maintain your access to the temp table, then there isn't much you can do about it.
===
Rachel, while I agree that users need to post code whenever necessary, I don't think that's the case here. He simply asked whether or not persistent connections SHOULD allow you to access a temporary table from two different scripts.
As for attaching files -- in this case it seems silly to include the file, when there is only one line in it. But I cannot fault anyone for attaching files -- indeed, we sometimes have too many people posting way too much code on the page. Attachments are just fine -- it only takes a second to open them. I don't know what you perceive to be dangerous about opening up a .txt file.