Jump to content

Global variable help


carlg

Recommended Posts

I have a global variable that stores the userid of logged in user.

 

looks something like this

 

global $id;

 

I have test server at my house.  Code works perfectly fine.

 

I just rented space on a VPS (Virtual private server).

Exact same code, but it does not work.

The value of the global variable is not being retained as it should.

 

Where should I look first?

 

Thanks

 

Carl

 

Link to comment
https://forums.phpfreaks.com/topic/72876-global-variable-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.