my dog learned polymorphism
The moose likes Servlets and the fly likes session suddenly missing after do payment gateway Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "session suddenly missing after do payment gateway" Watch "session suddenly missing after do payment gateway" New topic

session suddenly missing after do payment gateway

mance budiman

Joined: Nov 29, 2010
Posts: 1
Dear All,

Currently we have problem with our application that goes to online payment.
after do payment, the page that supposed to process after-payment thing checked no session and throw the user to login page.

functionally the process goes like this:
1. customer login, do fill in some data and amount. click 'proceed to payment'.
2. system redirect page to payment gateway system, throwing session id of the customer. and also send the after-successful-payment url.
3. customer fill in payment information and click 'submit' on the payment gateway page.
4. system redirect back to the original system, send notification (to make sure the original system still alive) and sending the passed session id.
5. original system will check the session id., proceess it, and send notification to payment gateway that the system still alive.
6. payment gateway receive the notification, do deduction, and resent the last information that the money has deducted.
7. original system check whether the session still alive, process the url and session id given from payment gateway and do another process (like generating the receipt, etc).

however, the last step in step 7, original system (our application) 'sometimes' check that the session already changed (it's printed out in log 4 j). therefore throw the customer to login page, asked for login again.
it's only happen in 1-2 customer local PC.

any idea what setting to be checked?
i have tried:
- change browser from IE to firefox.
- clean up temporary files.
- clean up jre temporary files.

nothing fix the problem. dunno whether the problem in the application or customer's local pc.

please advise.

Rob Spoor

Joined: Oct 27, 2005
Posts: 20276

Hi mance, welcome to the Ranch!

Please CarefullyChooseOneForum next time; I feel this thread will fit better in our Servlets forum. I'll move it there.

How To Ask Questions How To Answer Questions
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

Welcome to the Ranch!

How long does all this take? It couldn't be timing out, right? Or overwriting a session cookie?

Also, do you know if the users with the problem have anything in common?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I agree with Jeanne.

You must check if there is nothing overwriting a session cookie. If cookie is enabled. How long is the timed-out configured.

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
I agree. Here's the link:
subject: session suddenly missing after do payment gateway
It's not a secret anymore!