This php page will check if the user is logged in or not . If not it will redirect the user to login page.
<?php//session starts heresession_start();//check if session is registeredif(session_is_registered('userid')){//if registered display the content you would like to showecho 'Hello you are logged in.';}else{//if session variable is not registere send back user to login pageheader( "Location: http://login.html" );}?>


2 comments until now.
hey thnks...thats something i was looking for
This is the precise weblog for anybody who needs to seek out out about this topic. You notice so much its almost arduous to argue with you. You positively put a brand new spin on a subject that's been written about for years. Nice stuff, simply nice!
Post a Comment