Consultor Eletrônico



Kbase P87289: Is it possible to change the SESSION:TEMP-DIRECTORY at run time?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/03/2009
Status: Unverified

GOAL:

Is it possible to change the SESSION:TEMP-DIRECTORY at run time?

GOAL:

Can a client's temporary directory be altered after the session started?

FACT(s) (Environment):

Progress/OpenEdge Product Family
All Supported Operating Systems
OpenEdge Category: Language (4GL/ABL)

FIX:

No. The SESSION:TEMP-DIRECTORY attribute is READ only and can not be changed at run time. It specifies the location where Progress writes the temporary files it generates during that session.

By default, Progress puts these temporary files in the current working directory unless a different SESSION:TEMP-DIRECTORY was specified using the Temporary Directory (-T) startup parameter.


On UNIX, Progress names these Progress generated temporary files uniquely for each user to avoid filename conflicts. However, on Windows, if two or more users share the same SESSION:TEMP-DIRECTORY a conflict of temporary files access may arise.

In multi user applications, if the SESSION:TEMP-DIRECTORY is hard-coded as the destination of an application's own generated files then a a conflict of temporary and/or application generated files may occur throwing a system error message.

One way to avoid this type of conflict is to start each user using a different working and / or SESSION:TEMP-DIRECTORY.

FIX:

References to written documentation:

Progress Solutions:
P9223, "How to change the current working directory of a 4GL session on Windows?"