Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSession Id and third party payment site  RSS feed

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a site that allows a user to select an items to buy. I store these selected items in their session. To actually buy the items they go to a third party site.

The third party site calls a url on my site so I know that the user has purchased and paid for the items. I need to associate the items that were purchased with the user that purchased them so I can update the database

If I append the JsessionId to the url that the thirdparty calls.

i.e. http://mysite.com/processPurchasedItems?JSESSIONID=1234

If this url is used and I call request.getSession() will this find the session for the correct user?

thank you
david
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes , but the session object should be alive in your server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!