You are here: Re: Sessions Problem « PHP Programming Language « IT news, forums, messages
Re: Sessions Problem

Posted by Rik on 08/18/06 08:42

lorenzdominic_@hotmail.com wrote:
> Hi thanks Bartek for your help.
> If the Session ID is "silently added" what is the need to append a
> Session ID to a URL when not using cookies?

The user/UA has to identify itself. There are mainly 3 possibilities:
1. Cookie (preferred).
2. POST variable
3. GET variable

> As this is the way I thought I had to do it? I was appending the
> Session ID to the URL when accessing another page.

When using GET variables, HTTPS is a must.

> However it appears this is not required and all the tutorials on
> appending a Session ID to a URL are pointless.


This is one of the things PHP will do automagically for you. Standard it will
try to set a cookie, unless you tell it otherwise. When using a cookie, no
url-rewriting is necessary.

Check the manual: http://www.php.net/manual/en/ref.session.php

Grtz,
--
Rik Wasmus

 

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

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