Quote from: pixelchutes at Sep 05, 2007, 01:19 PM
Quick question:
Without the AJAX functionality enabled, does anybody else notice a weird redirect during both "Login" and "Logout"?
This is something I have noticed with the old WebLogin snippets during logout, but it seems that w/ WLPE I now see this during both...
Any ideas on whether or not this can be avoided altogether?
The PHP Session does not start until the page is refreshed. If &liHomeId is specified, the user is redirected to that page, otherwise, the current page is refreshed. The reason is that when a page has content that only a logged in user can view, such as menu items or a jot comment form, these things will not show up until the page is reloaded.
When a user enters their credentials and presses the Login button, the user is redirected to a new page (via the $_REQUEST[’service’] postback functions) where $wlpe->Login() is executed and &loginSuccessTpl is displayed. In order for the resources (that the logged in user now has access to) to show up, the page must be refreshed because the session was started on this page at the same time the content was being displayed. The conditional content had no knowledge of this session.
Thus.... the login and logout have "a weird redirect".
-sD-
Dr. Scotty Delicious, Scientist DFPA.