I can't get my sessions to work on my hosting account even though I had my site running perfect on my machine's xampp setup.

The sessions just won't last at all. I dont know what the problem is. Is there a setting I have to change or something to make sessions work on an actual website?

You may have Register Globals on in your local system and off on the server. This could cause you problems. Use phpinfo to find out what the setting is on the server.

If this is not a problem, then it may be difficult to help without more detail (and even then ...). If your web host support is any good, they may be able to help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.