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

PHP Cookies

P: n/a
I have a project where we want users to log in and they will be directed to
pages that are appropriat for them (Per thier job in the company) I can set
the user name and password in the cookie so as to make it so they do not
have to keep loging in, but how do I read it back and process the
information as a login? The cookie is set to auto expire at 72 hours but
security is not the biggest issue as I would just fine URL encoding this,
but my boss wants it in a cookie instead so it will auto logon when a
employee comes back to that part of the site?

Is the any good sample codes for this? Part of the information is in a MySQL
database so it would be best if it could interact with that.

Thank You
Steven
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Steven Young" <we*******@saacomputer.com> wrote in message news:<ZK********************@comcast.com>...
I have a project where we want users to log in and they will be directed to
pages that are appropriat for them (Per thier job in the company) I can set
the user name and password in the cookie so as to make it so they do not
have to keep loging in, but how do I read it back and process the
information as a login? The cookie is set to auto expire at 72 hours but
security is not the biggest issue as I would just fine URL encoding this,
but my boss wants it in a cookie instead so it will auto logon when a
employee comes back to that part of the site?

Is the any good sample codes for this? Part of the information is in a MySQL
database so it would be best if it could interact with that.


1. http://www.google.com/search?&q=php+login
2. http://martin.f2o.org/php/login

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.