Skip to Content
0
Former Member
Oct 25, 2005 at 12:49 AM

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

21 Views

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>

-


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.