Hi,
I want to make my php page just can be accessed by another page redirect, and want to prevent my user directly access to it.
i mean, lets say i have a page called "main.php" and other php file that i want to prevent direct access called "noaccess.php".
I want to make noaccess.php file accessible if i only redirect from main.php
any suggestion?
Thnx
UPDATE: Session is good idea thx but problem is i have to use javascript to redirect page, so the question is, can i use ajax to set a php session ?
UPDATE 2 : OK I found solution, i dont need preventing direct access now as i can check from mysql whether page needs to be accesible or not. but thanx everyone tho