Results 1 to 5 of 5

Thread: How to pass a structure to another site

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78

    How to pass a structure to another site

    Hi,

    I have this situation: I built an site that contain an secure folder where I capture some sensitive information. The data that I capture it is stored in a structure, and then the structure in a session so I can use it later.
    Now, all the secure pages will be moved to a diferent website, so I heve to leave my site, run the page on the secure site and then come back to my unsecured site.
    How can I pass that structure between sites? Any other ideeas?
    I know that if you move from one website to onother, the sessions will not follow you.

    Thank you,

    Svatasoiu

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can use a web service and pass the structure like that. Or you could maybe serialize the stucture (not sure if structures are able to serialize, if not, you could create a object that you could store your structure in, then serialize that) then pass that to your app if you have ways to recieve it and process it.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78
    Thank you for the reply.
    I do not understand something: when I change from one page to another I do a redirect or a server.transfer. How can I pass an serializable object and where? in the query string...?
    Can you build a small ex or explain a little bit more. This kind of transfer is something that I never did.

    Thank you,
    svatasoiu

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    How much data are you passing? What does the structure look like?

    Also, do you have control of both web servers?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78
    The structure looks like this and there may be strings, integers

    Public Structure CreditCardInfo
    Public Sub ClearAll()

    End Sub
    Public CardHolder As PersonInfo
    Public CardType As String

    Private mCardNum As String
    Private mCardExpMonth As String
    Private mCardExpYear As String
    Private mCardExpDate As String
    Private mAmount As Double
    Private mValidResponse As String
    Private mResponseCode As String
    Private mResponseReasonCode As String
    Private mResponseReasonText As String
    Private mApprovalCode As String
    Private mAVSResultCode As String
    Private mTransactionID As String
    End structure

    Yes, I can control both sites.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width