Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 24, 2005 at 05:09 AM

    Hello,

    Have u checked the Option 'Stateful ' of your BSP Application ?

    In Properties tab of ur BSp , Just turn this on.

    Regards,

    J

    Do reward Pts if this solved ur prob.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Durairaj Athavan Raja

      Thank you for all kinds of answer for my question.

      since I delevelop application only session state

      that table modify_class can be alternative option.

      I will consider that way strongly if I didn't find any other solution.

      and will post BSP forum too.

      thanks.

      Regards

      Bae