PHP Programming > General PHP Help

SESSION variables are not working properly

(1/1)

Aneeb:
Hey Everyone! i am having a problem in my website, the session variables are working properly on local server, but not on live server. I am doing it like this

--- PHP Code: ---
session_start();
$_SESSION['pin'] = $pin;

--- End code ---


and i am calling it like this.

--- PHP Code: ---
session_start();
 $pin = $_SESSION['pin']; 
echo $pin;

--- End code ---


pleae help me i am new to this..

dex2908:
Hi Aneeb,

Since its working in your local server, it should be the web hosting server settings. You should ask their customer support or you can try this: http://open-classifieds.com/forum/topic/need-help-with-enable-sessions-on-my-server

Regards,
developer.dex2908

Aneeb:
Thanks Dex2908, really appreciate your answer.

dex2908:
You are welcome Aneeb.

Regards,
developer.dex2908

Navigation

[0] Message Index

Go to full version