At 03:49 AM 8/30/2002 -0400, you wrote:
Quoting Stefan Hornburg (Racke) (suppressed): > suppressed writes: > > > Quoting Jeff Dafoe (suppressed): > >> > [tmp some_scratch] something [/tmp] > >> > > >> > it goes away after the current page. > >> > >> I think the tag reference is wrong. It says for tmp: > >>> >> "Sets a scratch variable to value, but at the end of the user session the> >> Scratch key is deleted" > > > > That is actually correct. I don't know where your confusion lies... > > > >>> >> That is what confused me. I went ahead and made a note in the online> >> reference to reflect the information you provided. Thanks for the > >> additional information, as I was also wondering about the lifetime of > >> variables used in embedded perl. > >> > > > > All variables in IC, except for ones stored in the user session, > > last only for that page. Even if you set $Config, which you actually > > see quite frequently, it will return to the catalog.cfg value on > > the next access. > > The grand exception is $Variable, where changes are persistent even > across sessions, so if you change a variable for one customer, the > next will get the changed value in another session. Only if you change the file or data object underlying it, and that is presuming you have "Pragma dynamic_variables" set. Just assigning to $Variable in embedded Perl will do nothing.... -- Mike Heins
Really splitting hairs now, but I've found that, even without the above-mentioned Pragma directive, catalog Variables can be reassigned in an Autoload routine, provided that they were intially set in catalog.cfg with Variable directives, as opposed to being set from a VariableDatabase read. Make sense?
- Ed L. =============================================================== Increase profits from your Interchange store... http://www.newmediaems.com/cgi-bin/nm/software_fus.html =============================================================== New Media E.M.S. Software Solutions for Business 463 Main St., Suite D eCommerce | Consulting | Hosting Placerville, CA 95667 suppressed (530) 622-9421 http://www.newmediaems.com (866) 519-4680 Toll-Free (530) 622-9426 Fax =============================================================== _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.