Jump to content

Serious problem with sessions.


Recommended Posts

Hello Farshad,


I have a serious problem with sessions. I am noticed that TDataSet created in mainmodule are sharing by different sessions.


Causing a data contamination from other user/sessions.


For each TDataSet on mainmodule I need a different session.



Could you tell about this ¿?




Link to comment
Share on other sites

Sorry, the problem I think that is in fscript using global var fsGlobalUnit.


It contains a reference of all dataset in main module.


fsGlobalUnit is created once, I believe... then DataSets are sharing into diferent sessions.

  for i := 0 to ComponentCount - 1 do
      if Components.ClassNameIs('TADQuery') then
        fsGlobalUnit.AddObject(Components.Name, TADQuery(Components));
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...