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

Posted by seaside on 12/20/06 14:18

crescent...@yahoo.com schrieb:

> 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.

Hm, unlikely. My code always worked fine on XAMPP and production
servers.
I really wonder, that your production system doesn't come with session
support
pre-configured

I feel, that there is something in your code, which is related to your
xampp dev-environments.

Could you post a bit more code? How do you open the session and such?

 

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

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