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.