php - Page keeps on loading when open a URL -
the page keeps on loading when open link. on pages fixed putting exit();
after header('location:link');
statement.
the problem occurs when open 2 or more pages of website together. when occurs request further page on site not opens keeps loading. page opens after 10 20 minutes.
when pages keeps loading , open other page of site in new tab, live http headers shows request not sent.
any help?
a header location should followed exit();
prevent further execution of code below point.
you may find closing access session aid further can lock other pages accessing it, until script has finished.
session_write_close(); header("location: url"); exit();
see: why have call 'exit' after redirection through header('location..') in php?
http://www.php.net/manual/en/function.session-write-close.php
Comments
Post a Comment