Online documentation - WebsydianExpress v3.0 |
APIWebServer.ReloadSitePageGenerator
None
Call this API if you have changed roles or user for the session and want to reload the site based on the new session information.
This can be used if you create a custom-made login functionality.
The API calls a PageGenerator that contains an event which reloads the site. In the HTML template WSLOAD used by this PageGenerator, this event is specified as having target ="_top" and the page includes JavaScript that executes this event automatically.
This template is delivered in the "basicsite" template folder. This template must be present in a folder in the folder list used by the session when the API is called - otherwise an error will be reported to the user and the site will not be reloaded.
The PageGenerator inherits from PageGeneratorNoPresentation, this means that you do not have to make a special version for each presentation, it is always the basic WSLOAD template that will be used.
WSE0036 - Session not found