Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2008, 10:58 PM   PM User | #1
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
session variable problem in credit card processing

hi ,


i have four pages -- page 1 , page2 , page 3 , page4

page 1 has CC form ,--
page2 perform the transction
page 3 opens if transaction true
page 4 opens when transaction false



page 2 goes to page 3 with two variables Bank number and invoice No.

on page 3 i have two session variables

userID
OrderID

orderId is used to enter information in sometables


Now the problem is suppose i have opened 1 instance of page 1 which contains CC information with orderId in the session variable and other variables it psot to bank

Now suppose i open i more instace of page 1 on another page of browser
at that time i will have another another orderId in session.

Now if i go back to first page 1 and perform transaction then when i come back to page 3 it has

OrderId in session of another instance of page which i opened and results gets mixed

what should be the solution?

what i was thinking that should i post orderid from page 2 to page 3 ?
o0O0o.o0O0o is offline   Reply With Quote
Old 01-21-2008, 11:49 PM   PM User | #2
Ultragames
Regular Coder

 
Join Date: Aug 2002
Location: Oregon, United States of America
Posts: 882
Thanks: 1
Thanked 9 Times in 9 Posts
Ultragames has a little shameless behaviour in the past
You should be unsetting the session data when the transaction complete. I can't help you more than that without seeing code. Post some code and we'll help you out.

Just to help keep you safe: Please be VERY careful about credit card data! It is illegal to store it, even in a session. If you are storing it in the session, in a database or hard file, then you are looking at serious security and legal issues.
__________________
If I'm postin here, I NEED YOUR HELP!!
Ultragames is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:34 AM.


Advertisement
Log in to turn off these ads.