SESSION problem[Solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

SESSION problem[Solved]

Post 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
Last edited by devendra-m on Sun Dec 16, 2007 3:44 am, edited 1 time in total.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Are sessions ever started?
session_start();
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

Post by devendra-m »

actually the problem was because of server configuration

register_globals
Post Reply