Page 1 of 1

SESSION problem[Solved]

Posted: Sat Dec 15, 2007 11:15 pm
by devendra-m
In one page

I have set $_SESSION['city_cd']='14'

and in another page

I have set $_SESSION['POSTED']['city_cd']='aalsmeter'


when I try to access $_SESSION['city_cd']

I get 'aalsmeter' instead of '14'

could you please tell me what might be the problem

Posted: Sun Dec 16, 2007 12:43 am
by Zoxive
Are sessions ever started?
session_start();

Posted: Sun Dec 16, 2007 3:43 am
by devendra-m
actually the problem was because of server configuration

register_globals