|
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]
|