Quantcast
Channel: SCN : Discussion List - Business Server Pages (BSP)
Viewing all articles
Browse latest Browse all 237

Automatic redirect to entry page

$
0
0

Hello,

 

I'm developing a stateful BSP app that has to start with the specific entry page, so if users somehow navigate to a non-entry page (e.g. via a bookmark or by refreshing that page after their session has timed out) they should be redirected back. What I have came up with is this check:

 

IF application->my_state_property IS INITIAL.     response->redirect( '../MAIN/default.htm' ).     EXIT.
ENDIF.

 

This works, but I don't like having to insert this bit into every page while keeping track of the relative URL, and  relative redirects seem to be disallowed by HTTP specs. Is there a better way?

 

Thanks,

Pavel.


Viewing all articles
Browse latest Browse all 237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>