This topic is locked

Redirect at Login

11/5/2014 1:14:34 AM
PHPRunner General questions
A
ashumak author

Hi,
Was looking for a way to redirect <Guest> to one page, and those logging in to another.
Guests got to New_Reservations_add.php

Users go to clients_list.pp
Suggestions.

Admin 11/5/2014

If you use one of recent versions of PHPRunner use the landing page option

  1. Choose New_Reservations_add.php as a Landing page
  2. In AfterSuccessfulLogin event add a redirect to clients_list.php

header("Location: clients_list.php");
A
ashumak author 11/5/2014



If you use one of recent versions of PHPRunner use the landing page option

  1. Choose New_Reservations_add.php as a Landing page
  2. In AfterSuccessfulLogin event add a redirect to clients_list.php

header("Location: clients_list.php");



Great...so far so good....Now, when a Guest clicke the link on the login page, he goes to a blank screens, how can i set it to go to the New_Reservations_add.php page?
Thanks!

Admin 11/5/2014

Probably the easiest option is to remove 'Login as guest' link in Visual Editor and add your own link there that points to New_Reservations_add.php page.