faqts : Computers : Databases : MySQL : Connectivity : Perl

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 14 people (21%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

how do i ouput a page of an authenicated web page( i need to pass an username n password for authent
could anyone help me with a code that passes an username n pasword to a webpage,get authenitcated an

Mar 25th, 2002 21:54
Narendra Jain, Lakshmi Ramachandran,


For user authentication, you have 2 options:
1. Use Cookies.
2. Use Sessions.
Cookies can be disabled on user computer and so sessions are a better 
way to handle user authentication.
Here, you need to call the user authentication function by passing the 
PHPSESSID from the same page which you call while getting the user id 
and password. Using the session variables, you can then 'echo' the 
needed details for the authenticated user.