>You can subclass wwSession or wwProcess and add your subclass name in the WCONNECT.H file.
>
>#DEFINE WWC_SESSION MySession
>
>
>The substitution will be made at each compilation.
>
>For instance, if you decide to subclass wwProcess, you can add a third parameter to initSession to pass the table name and assign it to the cTableName property just after the creation of the object.
>
>HTH :)
right now you cannot pass any parameters to the wwSession class because the wwSession class does not have an init method.
Thus, there is no way to adjust the properties of the wwSession class BEFORE the Process class creates a Session object.
I wonder what adding an init method will do to a subclass of the Session class :)
I ask that because of the lines...
#IF WWC_USE_SQL_SYSTEMFILES
THIS.oSession=CREATE([WWC_SQLSESSION])
THIS.oSession.oSQL = THIS.oServer.oSQL
#ELSE
THIS.oSession=CREATE([WWC_SESSION])
#ENDIF
present in the InitSession method of the Process class.
Because adding a parameter to the InitSession method means adding a parameter to the instantiation of the wwSession object... in order for it to 'know' that you'd like a different table.
Dave.
>
>>two Web Connection server windows actively accepting web hits.
>>Each uses the same wwSession table to track users.
>>I'd like each Web Connection server to have its own wwSession table.
>>
>>I could change the following lines in wwProcess.prg for each project and compile into an exe :
>>
>>*** Custom Properties
>>cDataPath = ".\"
>>cTableName = "wwSession"
>>
>>I'd have to remember to change the two lines provided above in the wwProcess.prg for each compile of each project.
>>This is unacceptable.
>>
>>Any better solutions?
>>
>>Thanks In Advance.