I’ve been working on a couple new projects these past few days and I’m happy to let you know they’ll be going live very soon. So stick close this site and tell your family and friends to stop by as well. The countdown in on.
In the mean time - Can someone explain PHP Sessions to me? They’re pretty much a cookie that only lasts as long as a person’s browsers is open, right?
posted on January 26, 2004 | 5:54 PM EST
Add to the discussion.
php cookies suck. I have many issues with them. The worst is trying a log off a cookie. check phpbuilding.net they have some good info
I think that Joel meant this web site: http://www.phpbuilder.com
They do have a few good articles, but the problem is that each one has a different author. It can cause confusion when first learning a new language because of varying writing styles and coding practices.
Sessions are different than cookies, although they sometimes (usually) use cookies to keep the session id from page to page. If you don’t use cookies, then make sure that the session id is passed along with the HTTP header as a POST variable, or as a GET, in the URI.
The session information is stored in a temporary folder on the server itself. There are many pro’s and con’s when it comes to this, espcially in the area of security.
Feel free to e-mail me any specific questions. Oh yes.. the official documentaion for sessions can be found at: http://us4.php.net/manual/en/ref.session.php
Hmmm… maybe I should write my own article on them. ;-)
Joel Leo Says:
php cookies suck. I have many issues with them. The worst is trying a log off a cookie. check phpbuilding.net they have some good info