Jump to content


Corporate Sponsors


Latest News: (loading..)

Authorize.Net SIM Session Problem


  • You cannot reply to this topic
5 replies to this topic

#1 aurevilly

  • Community Member
  • 19 posts
  • Real Name:Julien

Posted 21 June 2011, 14:59

Hello,

I am currently working on integrating the Authorize.NET SIM module to oSCommerce 3.0 Alpha 5

I am using the Authorize.NET SIM Intergration 2.2 release.

However, I am having a little problem.

It won't keep the osCsid that I've defined in attributes.

$process_button_string .= osc_draw_hidden_field($osC_Session->getName(), $osC_Session->getId());

When I leave the site, I get this session id sent to authorize : c54919c4238db21105ca0fe63a14e3d5

When I come back from Authorize, I get stuck at the login page with the session id : cf7338b47fd11c443717bfcc8937d20f

However, if I click again on the 'Login' link in the navigation, it gets me back to the login page with the correct session id (c54919c4238db21105ca0fe63a14e3d5)

My return url is set to 'checkout.php/process' wich should be fine.

I am wondering why does Authorize.Net rewrites my session or why I get another session id when I'm coming back on the website.

Thanks.

P.S. The followings are set to 'False' in the Services -> Session

- Force Cookie Usage
- Check SSL Session ID
- Check User Agent
- Check IP Address
- Regenerate Session ID

Edited by aurevilly, 21 June 2011, 15:02.


#2 aurevilly

  • Community Member
  • 19 posts
  • Real Name:Julien

Posted 21 June 2011, 16:12

Also, I will post this as a contribution when everything will be functionnal.

Thanks.

#3 blackwater

  • Community Member
  • 163 posts
  • Real Name:Paul

Posted 21 June 2011, 20:40

You might be looking for
osc_draw_hidden_session_id_field()
which does not take an argument.

You should probably omit sending it as a field to gateway. OSC adds the session ID automatically to the link when the cookie is not yet created or cannot be created. It is based on PHP variable "SID" and value is unpredictable. This is to secure the connection between the client and the shopping cart.

#4 aurevilly

  • Community Member
  • 19 posts
  • Real Name:Julien

Posted 27 June 2011, 02:37

Hello blackwater,

I've tried the code you gave me.

It's not working.

We got it to work and get the same session id when coming back.

We think that it the isLoggedIn() is getting false and redirects to the login page.

Is there any other specific fields I need to post to Authorize in order to get the customer loggedin back?

I can provide our code, if it can help.

Edited by aurevilly, 27 June 2011, 02:38.


#5 aurevilly

  • Community Member
  • 19 posts
  • Real Name:Julien

Posted 06 July 2011, 14:23

We're still looking for a solution..

If anyone have some other ideas of what it could be, please let us know.

Don't forget that we're going to put the module available on the contribution site so it will be available once completed.

Let me know if some of you are interested in looking in the source code.

Thanks.

#6 dninja91

  • Community Member
  • 6 posts
  • Real Name:Norbert Bonnici

Posted 01 August 2011, 09:15

Can you send me a copy of your code please? Thanks