ok the thing is I have a loginpg.php whr the user logs in and i chk if the user name exists in database. then i set the session var
$SESSION['userID']= $mstrUserID;
$SESSION['user_Lname']=mysql_result($result1,0,"Show_Owner_Lname");
then i display him 2 links to 2 pgs , now in those 2 pgs i need to chk the session id is valid...
i mean if i directly type the url to those 2 pgs in the url then it shld say user not logged in. but if the user logs in and then clicks on the links provided then he shld be able to view the pgs and then log out .
hope i cud explain well
thanks
San