Troubled by $_SESSION concept~~~

Primarily, I was confused by this post appliation global variables

According to wikipedia, http protocol is a session less protocol. it’s contradictory that session less HTTP has a $_SESSION global parameter.

Than what is $_SESSION ? Where it is stored?

Is $_SESSION a cookie?

Thank you very much!!

I think $_SESSIONS is in server side and use cookie in client side to recognize the user. But …

yii want sessions to be used in this way:




$session=new CHttpSession;

$session->open();

$session['city_ID']=$_GET['city_ID'];



Thanks!

Hi!

I think, you should read the php manual about the sessions (and other chapters), before starting to use yii.

http://www.php.net/manual/en/session.examples.basic.php