Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user login !!

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
I use session to verify if the user of the page is logging in as:


session_start();

if (!session_is_registered('login')) {
header("Location:index.html");
}

Then if the user request any php page with the above code, this will redirect him to index.html, my question is: how to do it if the user request other files i.e ?

Thanks in advance.
 
If PHP is handling your user authentication, then you must put PHP in the way of any communication which requires authentication.

One way would be to use header() and readfile() to stream the document out through PHP.
Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top