Running classic asp web application in recent DataFlex versions: Difference between revisions
From DataFlex Wiki
Jump to navigationJump to search
(Created page with "When trying to run a classic asp style web application in DataFlex 19.0 and newer you might bump into problems trying to run it. This is because of the WebAppServerSession.Pa...") |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
WebAppServerSession.PageScopedSession=False | WebAppServerSession.PageScopedSession=False | ||
</pre> | </pre> | ||
So suppose you have a classic webapp that's called "BookCollection" then the edited global.asa would look along these lines: | |||
<pre> | |||
<OBJECT RUNAT=Server SCOPE=Session ID=WebAppServerSession PROGID="WebAppServer.Session.19.1"> | |||
</OBJECT> | |||
<SCRIPT LANGUAGE=VBScript RUNAT=Server> | |||
SUB Session_OnStart | |||
WebAppServerSession.PageScopedSession=False | |||
WebAppServerSession.Initialize("BookCollection") | |||
Session.Timeout=1 | |||
END SUB | |||
</pre> | |||
Recompiling your webapp ''should'' keep that extra line. | |||
But I do recommend to check that. | |||
See also: | See also: | ||
https://support.dataaccess.com/Forums/showthread.php?63945-Is-Classic-ASP-broken-in-19-0 | https://support.dataaccess.com/Forums/showthread.php?63945-Is-Classic-ASP-broken-in-19-0 | ||
[[Category:Web | [[Category:Web Applications]] |
Latest revision as of 17:11, 6 January 2022
When trying to run a classic asp style web application in DataFlex 19.0 and newer you might bump into problems trying to run it.
This is because of the WebAppServerSession.PageScopedSession in the global.asa file.
When you create a new web application in DataFlex 19.0 then the Studio assumes you are trying to create a new style application and it will create a global.asa file where it assumes you do not need asp sessions any more.
For classic asp style applications this needs to be set to false.
WebAppServerSession.PageScopedSession=False
So suppose you have a classic webapp that's called "BookCollection" then the edited global.asa would look along these lines:
<OBJECT RUNAT=Server SCOPE=Session ID=WebAppServerSession PROGID="WebAppServer.Session.19.1"> </OBJECT> <SCRIPT LANGUAGE=VBScript RUNAT=Server> SUB Session_OnStart WebAppServerSession.PageScopedSession=False WebAppServerSession.Initialize("BookCollection") Session.Timeout=1 END SUB
Recompiling your webapp should keep that extra line. But I do recommend to check that.
See also:
https://support.dataaccess.com/Forums/showthread.php?63945-Is-Classic-ASP-broken-in-19-0