Reply to Cookies/Sessions

Your name:

Reply:


Posted by Flaming Corncob on 07/28/06 03:43

Hello. Don't know if this would be the appropriate group to post this to
but it does have to do with PHP.

I'm trying to put together a page using PHP to handle and manage the
logging in/out or accounts, keeping data such as an account ID. Now, I
have no clue as to how to go about doing this properly as I've never
tried this before and for all I know I've been going about it all wrong.
What I need:

1) Ability for someone to log into the site using an account ID and
password. I already use MySQL/PHP so this I believe I can handle without
help.

2) The ability for the browser to retain this bit of info as a cookie
(my thinking - assuming this is how it's done on most sites). This info
would be retained until the user "quit" the browser or the cookie
expires.

Now I've already played around with cookies and sessions, but nothing
I've done appears to work correctly. I'm assuming for it to work cookies
and sessions are used together, not separate like someone suggested to
me. Are there any samples of code out there that actually work that I
could look at, or is there someone out there that knows how to go about
it?

Thanks.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация