DigitalBuilder
Programmer
Layer 4 would be Session Translator
Layer 3 would be 'Session Interpreter' Page/Session Insertion & Output with page/Session
Layer 2 Would be original Page
Layer 1 would be Original page/s includes
Result:
Level 3
Level 2
Level 1
TestL2.asp
<%
Session("PleaseGodWork")="Level 3<br>"
server.execute "testl3.asp"
response.write "Level 1"
%>
TestL3.asp
<!--#include File="testl4.asp"-->
<%
response.write "Level 2<br>"
%>
TestL4.asp
<%
response.write Session("PleaseGodWork")
%>
Added to sessions - more psuedo code
Possibly reconsidering: may need recompiled asp.dll ideally.
Will want to check with example.
going to generate example now.
Could 10 lines change your life?
'This could be SessionLayer.asp a n-tier layer maybe?
LocalDomain="LocalFolder=:c\inetpub\
PageURLName="PageURL"
PageURL=request(PageURLName)
SessionKeyName="Sessid"
Sessionkey=request(SessionKeyName)
Page=TranslateToLocalPage(LocalFolder,LocalDomain,PageURL)
PageData=GetpageWithsession(Page,SessionKey)
PageData=TranslateToLinkswithSessioninURL(LocalDomain,strPage)
response.write PageData
or something like that
Note to architect: could add remote domain, so you can grab the XML feed via local server to speed it up.
'CalledSublayer.asp e.g. fetched with webXML or similar with ASP
Callpage=Request("CallPage")
Session=Request("Seskey")
'Put session back
'Call page
execute CallPage
'feed is then given back to parent layer
To Microsoft: feedback@mss.co.nz
Sessions on ASP Could be partly fixed:
Idea: Programming Solutions ASP Fixing Stateless state with ASP
Page Translation of stateless language to preserve state
By Creighton Brown
Dated 2005-07-25
To:
webmaster@ddj.com
toplas@acm.org
s.roffel@elsevier.com
industry@mediadesign.school.nz
reece@netpulse.co.nz
Problem:
Session reference is not automatically passed with ASP.
Solution:
1. Use WebXML Service to download page
2. Regular expressions or link harvesting is done on the page
3. The harvested links are iterated through links inserting session reference. May require different circuits e.g. if then or otherwise for different placement e.g. & or ?
3. Session Reference could be a virtual key or assignable key which is then outputted in the links
4. When a link is clicked the Translation SessionID is then reinserted into the next page:
Note: translation may vary, early guestimate 0.4-0.8 seconds/page
Translator Page
Overview:
Load Translator and pass in From URL
Layer 3 would be 'Session Interpreter' Page/Session Insertion & Output with page/Session
Layer 2 Would be original Page
Layer 1 would be Original page/s includes
Result:
Level 3
Level 2
Level 1
TestL2.asp
<%
Session("PleaseGodWork")="Level 3<br>"
server.execute "testl3.asp"
response.write "Level 1"
%>
TestL3.asp
<!--#include File="testl4.asp"-->
<%
response.write "Level 2<br>"
%>
TestL4.asp
<%
response.write Session("PleaseGodWork")
%>
Added to sessions - more psuedo code
Possibly reconsidering: may need recompiled asp.dll ideally.
Will want to check with example.
going to generate example now.
Could 10 lines change your life?
'This could be SessionLayer.asp a n-tier layer maybe?
LocalDomain="LocalFolder=:c\inetpub\
PageURLName="PageURL"
PageURL=request(PageURLName)
SessionKeyName="Sessid"
Sessionkey=request(SessionKeyName)
Page=TranslateToLocalPage(LocalFolder,LocalDomain,PageURL)
PageData=GetpageWithsession(Page,SessionKey)
PageData=TranslateToLinkswithSessioninURL(LocalDomain,strPage)
response.write PageData
or something like that
Note to architect: could add remote domain, so you can grab the XML feed via local server to speed it up.
'CalledSublayer.asp e.g. fetched with webXML or similar with ASP
Callpage=Request("CallPage")
Session=Request("Seskey")
'Put session back
'Call page
execute CallPage
'feed is then given back to parent layer
To Microsoft: feedback@mss.co.nz
Sessions on ASP Could be partly fixed:
Idea: Programming Solutions ASP Fixing Stateless state with ASP
Page Translation of stateless language to preserve state
By Creighton Brown
Dated 2005-07-25
To:
webmaster@ddj.com
toplas@acm.org
s.roffel@elsevier.com
industry@mediadesign.school.nz
reece@netpulse.co.nz
Problem:
Session reference is not automatically passed with ASP.
Solution:
1. Use WebXML Service to download page
2. Regular expressions or link harvesting is done on the page
3. The harvested links are iterated through links inserting session reference. May require different circuits e.g. if then or otherwise for different placement e.g. & or ?
3. Session Reference could be a virtual key or assignable key which is then outputted in the links
4. When a link is clicked the Translation SessionID is then reinserted into the next page:
Note: translation may vary, early guestimate 0.4-0.8 seconds/page
Translator Page
Overview:
Load Translator and pass in From URL