Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Sending details from server to server!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sending details from server to server!

 Post Reply Post Reply
Author
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Topic: Sending details from server to server!
    Posted: 04 April 2005 at 2:16pm
Hi guys im working on a Project soon to create a shopping cart system and a feature will be send details to a Shared SSL.. so this will be a different server.. as this is a purchaseable piece it will have Private SSL also.

my question is what is the best way to send cart details from one server to other.. safely eleminating hacking etc... or continiously submitting to the other server..

i thopught about sending a veriable accross but its hard to do a random gen veriable from one server to the other and validate it.

does anyone have any ideas?
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 5:27am
By only cart details do you mean products they have requested to purchase?

If so, then it doesn't really matter how you do it, just have an order confirmation page on the SSL server to ensure their cart hasn't been changed in the process.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 6:11am
hiya

the Shared server option will have all content sent via form unless using the MSSQL Version, as it will be a serperate server ussually.

but this will be an option.

i had a thought on an idea what do you think on the below idea


i have Server 1 and Server 2

i have a Univeral Salt Code on both servers that match

when submitting from Server 1, i get the Univeral salt code and generate a random value. i then Hash encrypt it (forum style)

and pass the encrypted version along with the random value to Server 2

i then use Server 2 Salt code (same as server 1's one) and use the random value sent via the form and Hash encrypt the server 2 Salt Code with the form Random Value and if the output matchs the form Encrypted Version it was sent From Server 1


the Univeral salt Code for the application will be randomly set on install using FSO to change a value within the ConFig files that hold details that can't be in the Database.

the idea sort of uses Session veriable idea. as each Submission will be different. and as its encrypted oin submitting it should help the hacking
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 8:31am
If it's being submitted by form to server 2, can't you just check the HTTP referer to make sure the request originated from server 1?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 9:10am
good point .. didn't think of that one. Thumbs Up

cheers. im not actually working on it for a month or so as i have a Domain CP to make .. then im working on it.

cheers for that.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 9:54am
If you are using MSSQL why would you need to send data to your second server like that? If you store the shopping cart in the database both of your servers should be able to connect to the MSSQL server and get the shopping cart.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 10:08am
i know that MSSQL you can..

but the cart is going to be Access also. and some people might not want to use te MSSQL as it maybe slower than wanted so i'm making it so you can use MSSQL or use the access version side thats a form
Back to Top
snooper View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 23 April 2002
Location: Israel
Status: Offline
Points: 333
Post Options Post Options   Thanks (0) Thanks(0)   Quote snooper Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2005 at 8:16pm
what about a background http POST?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.