Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how can I keep session when request cames from web template?

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>

-


test2.htm

<body class="bspBody1">

<%=application->session_test%>

</body>

-


Regards.

Message was edited by: hyung jin bae

Not what you were looking for? View more on this topic or Ask a question