Sessions do not work on one of my hosts, but fine on others

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

Locked
3dron
Forum Commoner
Posts: 40
Joined: Sat Feb 01, 2003 10:25 pm

Sessions do not work on one of my hosts, but fine on others

Post by 3dron »

What do I ask of the host service that doesn't work? Phpinfo reports they are on 4.0.6.

Can I tell them to enable something?

Ron

P.S. I know it's them because same exact PHP page works fine on other host sites. And it has nothing to do with abbrev. $_session command or enabling global.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

$_SESSION would not work on that host because the version of PHP is not 4.1+. Use $HTTP_SESSION_VARS.
3dron
Forum Commoner
Posts: 40
Joined: Sat Feb 01, 2003 10:25 pm

Post by 3dron »

I use $HTTP_SESSION_VARS and it doesn't work. I said it had nothing to do with that.

Please any other info.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Ask your host to upgrade to a newer version of PHP.

Or start using session_register() and stop trying to use $HTTP_SESSION_VARS or $_SESSION.

Mac
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Locked