osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

problem with shared SSL and sessions

This is a discussion on problem with shared SSL and sessions within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm trying to install a new payment module (made by a Swedish company, Pay and Read). Everything works fine just ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-24-2004, 10:42 AM
Lurker
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eddman
Default problem with shared SSL and sessions

I'm trying to install a new payment module (made by a Swedish company, Pay and Read). Everything works fine just until the final confirmation of the order. When the customer klicks the last confirmation (stef 4 of 4), he is oddly back to login.php instead of the success order confirmation page. Example of what is shown in the browsers addess field: https://www.wopsa3.com/~xxxx/kite/lo...fe655942a6861e

And the error message that are display on the bottom of the page is:

1062 - Duplicate entry '7e6649d31ad556c767542914a37b025e' for key 1

insert into sessions values ('7e6649d31ad556c767542914a37b025e?sessionId=XJW7r gHp4GgRaVaUuRG3TAS3Sam7B92Mc7b30c0ec47af06e6afe655 942a6861e', '1093372575', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a: 0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"co ntent_type\";b:0;}language|s:7:\"svenska\";languag es_id|s:1:\"4\";currency|s:3:\"SEK\";navigation|O: 17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0; a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s :3:\"SSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:107:\ "7e6649d31ad556c767542914a37b025e?sessionId=XJW7rg Hp4GgRaVaUuRG3TAS3Sam7B92Mc7b30c0ec47af06e6afe6559 42a6861e\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\"; a:0:{}}')

this is shown two times the second one below the first one, and then this line is displayd:
[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

I've tried to change the settings in admin/configuration/sessions but it doesn't change anything. Now everything is set to 'false'.

This is how my includes/configure.php looks like (a piece of it):

define('HTTP_SERVER', 'http://www.xxxx.se/kite');
define('HTTPS_SERVER', 'https://www.wopsa3.com/~xxxx/kite');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'http://www.xxxx.se/kite');
define('HTTPS_COOKIE_DOMAIN', 'https://www.wopsa3.com/~xxxx/kite');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');



any ideas?

///eddman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-24-2004, 11:13 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

shared hosting sure does create alot of headaches...
if you look at ur configure.php, your cookie domains for http and https point to two different servers even though one might think its on the same server,
Quote:
define('HTTP_COOKIE_DOMAIN', 'http://www.xxxx.se/kite');
define('HTTPS_COOKIE_DOMAIN', 'https://www.wopsa3.com/~xxxx/kite');
if you match your http cookie domain with the https cookie domain, you should be set,

Code:
define('HTTP_COOKIE_DOMAIN', 'http://www.wopsa3.com/xxxx.se/kite'); 
define('HTTPS_COOKIE_DOMAIN', 'https://www.wopsa3.com/~xxxx/kite');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-24-2004, 11:12 PM
Lurker
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eddman
Default

Thanks for the reply Arpit!

i changed the lines to:

define('HTTP_COOKIE_DOMAIN', 'http://www.wopsa3.com/~teese22/kite');
define('HTTPS_COOKIE_DOMAIN', 'https://www.wopsa3.com/~teese22/kite');

however now, I get this error message:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/teese22/public_html/kite/includes/configure.php:46) in /home/teese22/public_html/kite/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/teese22/public_html/kite/includes/configure.php:46) in /home/teese22/public_html/kite/includes/functions/sessions.php on line 67

The error message is displayed above the page and is there right from the beginning when reading index.php

any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-25-2004, 05:24 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

im sorry, i think we have a little miscommunication....
lets say ur domain name is: myshop.com

then your cookie domain paths should look like,

Quote:
define('HTTP_COOKIE_DOMAIN', 'http://www.wopsa3.com/myshop.com)';
define('HTTPS_COOKIE_DOMAIN', 'https://www.wopsa3.com/myshop.com');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
UPS, USPS and shared SSL certificate problem nfway osCMax v2 Installation issues 2 08-25-2005 05:54 AM
Shared SSL - Lost Sessions red_fraggle osCMax v1.7 Discussion 2 03-31-2005 01:19 PM
shared SSL Help Please! lil-raskals osCommerce 2.2 Modification Help 2 09-30-2004 09:30 PM
Shared SSL footer problem u2web osCMax v1.7 Discussion 0 09-14-2003 08:50 PM
Shared SSL Help Anonymous osCommerce 2.2 Installation Help 13 03-20-2003 12:42 AM


All times are GMT -8. The time now is 12:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax