Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping-Cart-information gets lost and appears again


markust

Recommended Posts

Hi there,

 

I have installed osCommerce-2.2rc2a.

The admin-part runs fine, but in the catalog-part it seems as I am being logged out every time. (This is no HTTP-timeout, it happens imidiately)

 

I log in as a user "[email protected]" (just a dummy-test-user). Go to the shopping-cart, looks good, but 2 or three clicks later, it seems to lose my log-information.

My shopping-cart is empty then and it seems as I got logged out. When I log in again, the shopping cart is ok.

 

I have:

register_globals Off Off

register_long_arrays Off Off

I have read in another thread, that there is a know problem with register_globals off and that I would need to apply a patch. Is this still the case with the 2.2-release?

Which php-version should I use? I am currently running PHP 5.2.2 or PHP 4.4.7 (I am not fully sure, phpinfo says the first)

 

My catalog is in htdocs/catalog, admin-part is in htdocs/catalog/admin.

 

I hope you can help.

 

Thanks,

 

Markus

Link to comment
Share on other sites

Hi there, just to complete this post.

 

I have made some progress :D

I know now that PHP 5.2.2 is supported, register_globals may be off, but register_long_arrays has to be on.

I have finally realized this by adding an php.ini to each php-folder.

 

Now I have the problem that the click&buy-payment-module is not shown in the admin-gui although I have installed it.

But, this is another problem and I should not deal with it in this one.

Link to comment
Share on other sites

  • 1 month later...
Hi there, just to complete this post.

 

I have made some progress :D

I know now that PHP 5.2.2 is supported, register_globals may be off, but register_long_arrays has to be on.

I have finally realized this by adding an php.ini to each php-folder.

 

Now I have the problem that the click&buy-payment-module is not shown in the admin-gui although I have installed it.

But, this is another problem and I should not deal with it in this one.

 

Markus, I believe I have a similar problem, when a user selects to checkout, they are taken back to the login page. When they log back in the items they selected are in the cart and they are on the first checkout page.

 

Can you please detail exactly where I check if register_long_arrays is on or off.

 

Cheers

Greg

Link to comment
Share on other sites

Hi Greg,

 

you can use the <? phpinfo() ?> in your php-page to see the php-configuration.

My solution was not very elegant. I have added a file php.ini to each folder that has php-scripts in it recursively.

The file looks the same in all folders. It simply has one line in it:

register_long_arrays on

 

Hope that helps ;-)

 

Good luck,

 

Markus

 

Markus, I believe I have a similar problem, when a user selects to checkout, they are taken back to the login page. When they log back in the items they selected are in the cart and they are on the first checkout page.

 

Can you please detail exactly where I check if register_long_arrays is on or off.

 

Cheers

Greg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...