php - How to disable going back after log in? -


i trying make simple log in page problem user can go index page log in page, tried using exit; didn't work.

 header("location: index.php",true,302);   exit; 

i tried using code didn't work:

<meta http-equiv="cache-control" content="no-cache"> 

if set coockie or session value after loged in, need check first in login file if cookie or session value set redirect index page.


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -