Help - Search - Members - Calendar
Full Version: Php
The Planet Forums > Control Panels > cPanel/WHM
mohdyasar
I had a n ensim box hosting all my sites with MySwl databases.
Now i moved to Cpanel and it seems my php coding is not working on the Cpanel box

It does not pass headers from one page to another the global variables have been tured on in php.ini file also I have searched the forums but no luck.

Please help me if u can

The same code is currently working on the ensim box still perfectly but the minute i transferred to the new box it just did not work.

If I disable headers it works perfect but i want to pass header information and cookie information to other pages for authentication.
Please advise

Yasar
Jeewhizz
Can you provide a link?
mohdyasar
i set the headers as follows :

i connect to the database to pickup the user id and password authentication

$userid = $r_user->id;
$username = $r_user->name;
$userpw = crypt($r_user->password,"gem100");
$usertype = $r_user->type;


no i set the person who is logged on as follows

Header("Set-Cookie: userid=$userid ;path=/n");
Header("Set-Cookie: username=$username;path=/n");
Header("Set-Cookie: userpw=$userpw ;path=/n");
Header("Set-Cookie: usertype=$usertype;path=/n");


but when i try to use the value in 'userid' it does not work please anyone please help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.