hi friends
I have a problem in my php
There is home page index.php in which there is link for forum page. this link takes to the user to index page of forum. If user is not validated then it takes to index page(home) of website. authentication form is on home index page. If user is login correctly then it must direct the user on index page of forum directly. How shud i maintain the state so that the visitor can go easily on forum's index page without clicking on forum link again.
thank u . plz help me
On your Forum Index page , put this
if(!isset($_SESSION['variable'])) { header("Location: /index.php"); exit(); }
That will send all user's who dont have your $_SESSION['variable'] to Index.php , while allowing the logged in user's to stay
😉