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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hello! does anybody knows how a use 1

Status
Not open for further replies.

roswell

Programmer
Mar 18, 2001
26
PH
hello! does anybody knows how a user can not able to view another page without passing through a login page. Meaning a user must enter first a username and login before seeing information about that person. So when she typed the url of the information page, it will wrote "You are not authorized to view this page!".

Does anyone knows how to do this?
 
Thanks for the answer. But I'm kinda new in php programming that's why I'm not familiar with session. Can you give an example on how could I do that? Thanks.
 
Session variables are not unique to PHP. Every CGI language that I know of supports them, some more easily than others. They're just a specialized use of cookies.

First, read here: they explain sessions

That will give you the basics.

Then you have to figure out what you're going to use as an authentication source and figure out how to access it. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top