You are here: session id passed but not session contents « All PHP « IT news, forums, messages
session id passed but not session contents

Posted by crescent_au on 12/20/06 14:11

Hi all,

I'm having a problem with sessions with my shopping cart. It works fine
in my local server at home and office but after uploading the code in
the remote server, the cart contents (session) are no passed to the
cart from products page. At home and office, i am using xampp. The
remote server is using Linux and probably apache.

in my cart.php file, i did this: <?php echo "ID = " . session_id() .
"<br />"; ?> to check if the session id is passed and it shows up but
when I do print_r($_SESSION['cart']['cart_contents']), it contains
nothing. I repeat this same code is working fine at home and office
under xampp. So i am thinking it is something to do with the remote
server. Is there anything i could do in php.ini in the remote server to
get this work? I think there is nothing wrong with my code as it works
under xampp.

Please help!

Ben

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация