Php sessions not working! please help!

I developed a site using PHP sessions
I’m using something like this:


From there I’m calling the sessions with
but it seems not to work. Locally using MAMP in my computer seems to work fine but here in Dreamhost seems like the sessions are not registered.

How do I have to handle variables in Dreamhost?