DataBridge server side include issues
I have three pages. The first page (registerNew.php) contains a registration form designed with form designer. It has a secure page rule which allows only certain users have access to it. Moreover, it has dataassist insert record behavior with one of the fields points to a sessionid of SecurityAssist(foreign key).
The second page (reprint.php) contains links for displaying a page that contains the data from the registered records that matches that sessionid (filtered).
The third page (register_student.php) includes both pages and display only one at a time based on a condition. If a record that matches the sessionid does not exists in the database, display the registration form or else display the page that contain the links for displaying the information. My main aim for making it as such is to deny access to the registration form if a person is already registered.
I tested the whole setup on my local server and everything works as expected. But when I deployed the site on my host and try to access the third page without login, it shows a kind of warning about a header which is already included in helper_php.php (something like so). But if I login before accessing the page it works fine. I definitely know the warning has to do with the sessionid of the securityassist.
What I did is create another page and point the login page to it if authentication is successful. On that page I used server redirect behavior with trigger of’ before page load’ and directed it to that third page and that did the trick for me. But the major problem I am having is that if a user submits the registration form I get warning with the following messages: ‘Warning: Cannot modify header information - headers already sent by (output started at /home/ramatpo/public_html/portal/register_student.php:76 and Warning: Cannot modify header information - headers already sent by (output started at /home/ramatpo/public_html/portal/register_student.php:76) in /home/ramatpo/public_html/portal/registerNew.php on line 228) in /home/ramatpo/public_html/portal/webassist/forms/persist.php on line 13’. I don’t experience all these on my local server. Any help, suggestion or workaround is welcome.
Thanks.