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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -