I would think that the biggest problem with using QTEMP is that it is unique to the job - but the job will be reused.

Not an issue if the code restricts usage to a single request/response pair - but to me it is just a problem waiting to happen when some programmer down the road decides to rely on the thing still being there from a previous request.

Personally in CGI jobs I avoid QTEMP like the plague - once bitten ....


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Mar 4, 2017, at 11:32 AM, Richard Schoen <Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

Thanks for the reply.

Since the CGI request/response cycle is synchronous and performing a single CGI transaction why would steering away from QTEMP be bad ? I'm not following your time slicing theory.

Ultimately I may suggest that the developers place the additional session data into the session database we already have, but your response seems contradictory on whether QTEMP is unique or not.

You seem to advise against it, yet isn't QTEMP a hallmark of IBMi jobs and unique across jobs as we've been discussing ?

Just curious :-)

Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

---------------------------------
Subject: Re: Question on QTEMP and CGI Jobs
From: Nathan Andelin <nandelin@xxxxxxxxx>
Date: Sat, 4 Mar 2017 08:52:44 -0700

I don't see any way a qtemp object could get clobbered by another job. As
others have indicated the request-response cycle is synchronous. But since
a single CGI job can have an unlimited number of programs active in the
same job, it seems theoretically possible that one of them could clobber a
qtemp object due to CPU time slicing. Perhaps unlikely, but I'd still steer
away from using qtemp in CGI jobs.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.