Session variables are not setting

i am trying to set my session variable using PHP but am not able to set them while the code works fine on localhost. ALso I’ve commented whole of my code and wnt to php ini settings usings phpinfo() function It is not displaying.Can any body please help me.