By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,640 Members | 2,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,640 IT Pros & Developers. It's quick & easy.

how to set user logon session and validate

P: n/a
Hi,

I want to find out how do I display the user who logon to the webpage,
such as, Welcome, xxxx! Also how do I validate against my user table
in MySQL database whether the user is an existing user or new user.

Will appreciate any information.

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"xo55ox" a écrit le 08/12/2003 :
Hi,

I want to find out how do I display the user who logon to the webpage,
such as, Welcome, xxxx! Also how do I validate against my user table
in MySQL database whether the user is an existing user or new user.

Will appreciate any information.

Thanks.


You'll need a form for the user to fulfill typically User and Password.
Check this values against your DB values.
If OK use Session or Cookie to store an ID and display the user name.
If not display "Guest" or whatever even an "New user register here"
page :)

--
Have you read the manual?
http://www.php.net/manual/en/

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.