Hi there, I hope you are fine.
I have a question regarding the following code.
PHP Code:
if ($_SESSION['userid'] < 1){
redirect('welcome/verify','refresh');
}
Since this give errors, I changed to the followings.
PHP Code:
if (!isset($_SESSION['userid']) || $_SESSION['userid'] < 1){
$this->session->set_flashdata('error',"You must log in!");
redirect('welcome/verify','refresh');
}
Now problem is that this/these code does not show codes in view source in Firefox.
It returns just blank screen.
I deleted the above code and it shows all the codes in view source.
If I click View Generated Source I can see codes.
Is there any thing can be done?
Thanks in advance.