echo '<script>alert("Your session has timeout, please relogin again!");</script>';
redirect('main/login', 'refresh');
This is the error:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/swtwnonu/public_html/ignite_project/application/controllers/member.php:19)
Filename: helpers/url_helper.php
Line Numer: 540
I would like to redirect the person to my main/login page, after he have clicked okay for the message that i have displayed, however i have no idea why the error happen. Please help!