This topic is locked
[SOLVED]

 menu.php only driven once per logon

3/26/2015 2:56:35 PM
PHPRunner General questions
C
CPSRob author

I am running PHPRunner Enterprise 8.0 (Build 23504 x86). I needed to do some processing (i.e. an event) after logon and I couldn't seem to get echo to display out of the logon page (for testing) so I put it in the menu page. That seemed to work just fine. But now I notice that if I logon as user "A", the menu screen displays the first time. But if I logout as user "A" and logon as user "B", the menu page does not display the second time and therefore my event is not driven. Not only that, but if I logout as user "B" and log back in as user "A", the menu page is still not displayed. Nothing short of closing the browser corrects the problem. Is this some kind of caching issue? If so, how can I get around it? I get the same results on Firefox 36.0.4 and Chrome 41.0.2272.101. Thanks. Rob

Sergey Kornilov admin 3/27/2015

It's not clear what exactly happens when you are logged in as a second user. What exactly happens when first user logs out and second user logs in?

C
CPSRob author 3/30/2015

I go to the URL for the application (it is a property management application) and as expected, "login.php" is loaded by the browser. I then enter a management userid and password (for example, Rob) and click <Submit>. The browser then loads "menu.php". I then select one of the application list functions (for example, building) and the browser loads "building_list.php". Now, from the top of the building list screen, I click the "Log out" link. This takes me back to the login screen with the URL as "login.php?return=true". Now, I fill in another management userid and password (for example, Ray) and click <Submit>. Now, number one, I bypass the menu.php screen, and number two, I go directly to building_list.php. If I click the "Log out" link again, I go back to the "login.php" screen. If I log back in as Rob, it still will not go back to the "menu.php" screen. In fact, short of closing the browser, I can never get back to "menu.php". Thanks for any insight. Rob

Sergey Kornilov admin 3/30/2015

This behaviour depends on many things including your project login settings, landing page and some other things. For instance, you send someone a direct URL to the list page that is password protected. They will be redirected to the login page and after the login they'll be sent back to that list page. This is most likely is what happening in your project.
If you need to go directly to the menu page after the login add AfterSuccessfulLogin event to your project and redirect user to the menu.php page there.

C
CPSRob author 3/30/2015

Thanks, Sergey! That seems to have cleared the issue! Rob