HI.
I just made simple bsp and web template pages.
there is no problem when calling bsp each other.
//location.href = "./test2.htm";
but when I call bsp page from web template session is gone.why this happen? is there any solution not loosing session state?
-
test1.htm-oncreate.
application->session_test = 'test'.
-layout.
<FORM name='frm_Load' METHOD=POST ACTION="/sap/bw/BEx">
<input type="hidden" name="template_id" value="ZTEST_TEMP">
<input type="hidden" name="sap-user" value="ID">
<input type="hidden" name="sap-password" value="password">
</form>
<script>
frm_Load.submit();
//location.href = "./test2.htm"; //this works fine that print 'test'.
</script>
-
template-ZTEST_TEMP
<BODY>
<script>
location.href = "/sap/bc/bsp/sap/ztest/test2.htm";
</script>
</BODY>
-
<body class="bspBody1">
<%=application->session_test%>
</body>
-
I have post this topic on other forum and think we found reason but don't know how to solve this problem.
is there any way keep session between two different application?
how can I keep session when request cames from web template?
Regards.