Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turn off cookies? Force session id's??


Rwfresh

Recommended Posts

Posted

Hi All,

 

I just installed a new store. And i am using a off-site hosted merchant gateway called internetsecure.

 

For internetsecure to properly return a customer to the checkout procedure, after the payment has been confirmed i need to send them/it the session_id of the customer.

 

Basically cookies seemed to be defaulted on this new install and so i have no session_id to pass along to internetsecure.

 

OR is the oscid stored in the customer's cookie? Two possible solutions i guess, one force session id'd URLS or grab the oscid out of the cookie (if it's in there). Any help is appreciated. Thanks!

 

Rich

Posted

That's the reverse problem of most here.

 

Just misdefine the cookie domains and you'll have the session id in the url.

 

edit: And yes, the session id is in the cookie. Carrying it in the url will cause you all kinds of problems it people bookmark it or it gets picked up by search engines.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
That's the reverse problem of most here.

 

Just misdefine the cookie domains and you'll have the session id in the url.

 

edit: And yes, the session id is in the cookie. Carrying it in the url will cause you all kinds of problems it people bookmark it or it gets picked up by search engines.

 

 

Hi thanks for the reply, I guess my direct question is how can i grab the session id when inside the page?

 

So when the customer gets to checkout.php i'd like to be able to grab his osc_id and do what i want with it.

 

Can i grab it with either:

 

$_COOKIE['oscid'] or

$_SESSION['oscid']

 

Thanks!

Archived

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

×
×
  • Create New...