You are here: Re: why use $_POST when you have $_SESSION? « PHP Programming Language « IT news, forums, messages
Re: why use $_POST when you have $_SESSION?

Posted by NC on 01/27/07 05:27

On Jan 26, 2:02 am, "Sandman" <enjoylife_95...@hotmail.com> wrote:
>
> Is there any particular reason I should still use $_POST?

Yes. Forms.

> Also, I'm reading mixed things about sessions. php.net says you
> can propagate session IDs either via cookies or session IDs:
> http://www.php.net/manual/en/ref.session.php#session.idpassing

This is correct.

> However, PHP in a nutshell makes no mention of this. Paul just says
> hey, use session_start() and you're on your way:
>
> http://hudzilla.org/phpwiki/index.php?title=Cookies_and_sessions

This is only partially correct. You can do this only if the client
accepts cookies.

> I tested it out, and it works either way.

Disable cookies in your browser and try again. You will find that
session_start() doesn't do the trick anymore...

> Can someone please explain what the session ID does?

It provides an alternative session propagation mechanism for clients
that don't accept cookies.

Cheers,
NC

 

Navigation:

[Reply to this 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

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