Session

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

Post Reply
shivam0101
Forum Contributor
Posts: 197
Joined: Sat Jun 09, 2007 12:09 am

Session

Post by shivam0101 »

Hello,

I saw this code in the web,

Code: Select all

session_register("ClientID");
$ClientID=$client_id;
In the above code, ClientID is different from $ClientID? What is the purpose of registering? Is it any different from $_SESSION['ClientID']=$client_id?

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

session_register is deprecated, don't use it anymore. Use $_SESSION instead.
Post Reply