As I understand it, PHP sessions use cookies by default. If cookies are disabled, it switches to appending the session id to the URL.
The advantage with using sessions is that all this is transparent to you and it therefore requires very little coding. Did you ensure the code below went into a plain text file? If you put it in an HTML page, it must come right at the start of the page, before <HTML> or any headers. Make it the first thing in the file. "André cupini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] * People, sorry my ugly English. I´m Brazilian... I am looking for learning more about sessions... I´m test this code below don´t work with me.... My php version is 4.1.2. Anybody have a complete example code of how use sessions? Another doubt: Sessions use cookies? What the advantage in use sessions instead of cookies? André Cupini Programador [EMAIL PROTECTED] NeoBiz - fábrica de internet http://www.neobiz.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php