Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session Error


Mohsin

Recommended Posts

Hi

I am new to OSCommerce and want help about a session error i got... I choose to store session in database.. and now I am getting this error at the bottom of each page..

1062 - Duplicate entry '6addfb4cbaa0c172f78db90165a2f87f' for key 1

 

insert into sessions values ('6addfb4cbaa0c172f78db90165a2f87f?osCAdminID=5d209ada8a2ff2c2c6d51b2d4ac2ec8b', '1131646406', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"index.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:2:{s:5:\"cPath\";s:5:\"33_77\";s:6:\"osCsid\";s:76:\"6addfb4cbaa0c172f78db90165a2f87f?osCAdminID=5d209ada8a2ff2c2c6d51b2d4ac2ec8b\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}')

 

[TEP STOP]

 

1062 - Duplicate entry '6addfb4cbaa0c172f78db90165a2f87f' for key 1

 

insert into sessions values ('6addfb4cbaa0c172f78db90165a2f87f?osCAdminID=5d209ada8a2ff2c2c6d51b2d4ac2ec8b', '1131646406', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"index.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:2:{s:5:\"cPath\";s:5:\"33_77\";s:6:\"osCsid\";s:76:\"6addfb4cbaa0c172f78db90165a2f87f?osCAdminID=5d209ada8a2ff2c2c6d51b2d4ac2ec8b\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}')

 

[TEP STOP]

 

 

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

<!HR>

 

I know.. it because of primary key constraint.. One solution is that we remove this constraint... But, I dont think so... Its a good solution.. I want to know...

1. If we remove the primary key constraint... then what will be the effect...

2. Whats the best solution

3. When a session value is removed from the database

 

Thanx in advance...

Link to comment
Share on other sites

  • 5 years later...

Hello oscommerers,

 

 

After a fine Install, i get on all (not on the frontend index file) pages this Error, too.

 

I have search here in forum and the following tread fix all your problems.

 

http://www.oscommerce.com/forums/topic/218403-1062-duplicate-entry-error-fix/

 

 

Best Regards

 

Peter

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...