passing sessions between 2 sites

2004-02-10 Thread Ketan Patel
I have a shopping cart that it is losing all of its values when the user
hits the checkout button and takes them to my secure checkout page.
Example, the user is shopping at www.store.com and purchase several items
which are saved as session variables (session.cartdata), they then would
click on the checkout button which goes to
https://secure.securestore.com, but all of the session variables are lost.
the checkoutbutton has the following code behind
cfoutput
form method=POST action="">
target=_blank input type=submit value=Checkout name=submit
/form
/cfoutput
Any suggestions to avoid losing my session.

Ketan Patel
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: passing sessions between 2 sites

2004-02-10 Thread Katz, Dov B (IT)
If the 2 sites/apps are running on the same cf server (just 2 domain
names) I have often shares sessions by doing an
application-context-switch -- using the same CFAPPLICATION tag as on
your non-secure site when trying to access it... (maybe passing urltoken
in the query string or form as well...)

 
If not, you might consider passing the data by using WDDX to serialize
it to xml and sending with the form data, or writing session data to a
database and sending the key to the secure server to recover it...

 
There are many options, but it depends what assumptions you can make
about your environment.

 
-Dov



_

	From: Ketan Patel [mailto:[EMAIL PROTECTED] 
	Sent: Tuesday, February 10, 2004 10:04 AM
	To: CF-Talk
	Subject: passing sessions between 2 sites
	
	
	I have a shopping cart that it is losing all of its values when
the user
	hits the checkout button and takes them to my secure checkout
page.
	Example, the user is shopping at www.store.com and purchase
several items
	which are saved as session variables (session.cartdata), they
then would
	click on the checkout button which goes to
	https://secure.securestore.com, but all of the session variables
are lost.
	the checkoutbutton has the following code behind
	cfoutput
	form method=POST
action="">
	target=_blank input type=submit value=Checkout
name=submit
	/form
	/cfoutput
	Any suggestions to avoid losing my session.
	
	Ketan Patel 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: passing sessions between 2 sites

2004-02-10 Thread Ubqtous
Ketan,

On 2/10/2004 at 10:04, you wrote:

KP Any suggestions to avoid losing my session.

Is www.store.com on the same server as secure.securestore.com? If so,
just append CFID  CFTOKEN in the URL that sends the user to the
secure site. If the secure site has its own Application.cfm, I'm
pretty sure it's necessary to have the non-secure and secure
application names match.

If they aren't on the same server, then maybe CFWDDX will work for you:

Convert customer session data to WDDX packet:

cfwddx action="" input=#session.customer# output=sessiontext

Transfer WDDX packet to secure server via form post (put the WDDX
packet in a hidden form field) and convert back to a CF structure:

cfwddx action="" input=#sessiontext# output=session.customer

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: passing sessions between 2 sites

2004-02-10 Thread Ketan Patel
Worked fine now. Since both domains are on same server the CFID CFTOKEN
passing worked.
Thanks
Ketan Patel

-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 10:26 AM
To: CF-Talk
Subject: Re: passing sessions between 2 sites

Ketan,

On 2/10/2004 at 10:04, you wrote:

KP Any suggestions to avoid losing my session.

Is www.store.com on the same server as secure.securestore.com? If so,
just append CFID  CFTOKEN in the URL that sends the user to the
secure site. If the secure site has its own Application.cfm, I'm
pretty sure it's necessary to have the non-secure and secure
application names match.

If they aren't on the same server, then maybe CFWDDX will work for you:

Convert customer session data to WDDX packet:

cfwddx action="" input=#session.customer#
output=sessiontext

Transfer WDDX packet to secure server via form post (put the WDDX
packet in a hidden form field) and convert back to a CF structure:

cfwddx action="" input=#sessiontext#
output=session.customer

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: passing sessions between 2 sites

2004-02-10 Thread Joe Eugene
Depending on your requirements, you can do several things.

In this case store.com and secureStore.com are different domains...
Here is one way of solving the problem.

1. Keep all you session stuff (cart details in structs/arrays)
2. When User Checks out you can convert the Struct/Arrays details
 to an XML Packet and pass the XML STRING as hidden Field Or Use SOAP
e.g.
?xml version=1.0 encoding=utf-8 ?
Order
Item description=ColdFusion MX price=1000.00 quantity=1 total=1000.00/
Item description=DreamWeaver MX price=500.00 quantity=3 total=1500.00/
/Order

3. The Receiving application then converts the XML back to Structs (xmlParse()) and does further processing.

You can do the same thing with client variables.. if you want to go that route.

I typically try to stay away from WDDX, its NOT the most efficient..! (See archives for wddx problems)

HTH

Joe Eugene
- Original Message - 
From: Ketan Patel 
To: CF-Talk 
Sent: Tuesday, February 10, 2004 10:04 AM
Subject: passing sessions between 2 sites

I have a shopping cart that it is losing all of its values when the user
hits the checkout button and takes them to my secure checkout page.
Example, the user is shopping at www.store.com and purchase several items
which are saved as session variables (session.cartdata), they then would
click on the checkout button which goes to
https://secure.securestore.com, but all of the session variables are lost.
the checkoutbutton has the following code behind
cfoutput
form method=POST action="">
target=_blank input type=submit value=Checkout name=submit
/form
/cfoutput
Any suggestions to avoid losing my session.

Ketan Patel
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




passing sessions between 2 sites on the same domain

2003-10-10 Thread lari trujillo
have a shopping cart that it is losing all of its values when the user hits the checkout button and takes them to my secure checkout page. Example, the user is shopping at www.mystore.com and purchase several items which are saved as session variables (session.mysession), they then would click on the checkout button which goes to https://secure.store.com, but all of the session variables are lost. 
I am linking the page like this 
a href="" target=_blank >
the values of the cart are not passing as I am getting a statement i added to the application if there are no values on the cartyour shopping cart is empty
The address bar displays 
https://secure.test.net/testappli/finalize.cfm?CID=W0716CFID=143186CFTOKEN=60763772
when i click on checkout...Do i need to add anything else to avoid losing my session? 
all advice will be appreciated. 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: passing sessions between 2 sites on the same domain

2003-10-10 Thread Jeff Lucido
Lari:

 
I have had the same problem in the past. One thing I did was when I was
ready to move to the SSL side of the site I had my form post to a CF
page where I check values, etc. and then do a CFLOCATION to the secure
address while using the attribute addtoken set to yes.

 
Another way I got around this in the past with a site using client
variables was to encode the session values into a WDDX packet, send it
in the URL string and then decode it on the other side. 

 
Either way should work pretty well.

 
Good luck,
-JSLucido

-Original Message-
From: lari trujillo [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 10:05 AM
To: CF-Talk
Subject: passing sessions between 2 sites on the same domain

have a shopping cart that it is losing all of its values when the user
hits the checkout button and takes them to my secure checkout page.
Example, the user is shopping at www.mystore.com and purchase several
items which are saved as session variables (session.mysession), they
then would click on the checkout button which goes to
https://secure.store.com, but all of the session variables are lost. 
I am linking the page like this 
a
href="">
target=_blank >
the values of the cart are not passing as I am getting a statement i
added to the application if there are no values on the cartyour
shopping cart is empty
The address bar displays 
https://secure.test.net/testappli/finalize.cfm?CID=W0716CFID=143186
CFTOKEN=60763772
when i click on checkout...Do i need to add anything else to avoid
losing my session? 
all advice will be appreciated. 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: passing sessions between 2 sites on the same domain

2003-10-10 Thread laritru
thanks for the feedback.is there anyway you can show me how you where able to accomplish this? I am added a button to post instead of the href
form method=POST action="" target=_blank >
input type=submit value=Checkout name=submit
input type=Hidden Name = checkout Value = #Session.Crtcalid#
br

/form
this new file that i am posting only hold one line of code.
cflocation url="" addtoken=Yes
once i submit the checkoutbutton i get my self written error 

Your registration Cart is empty  

Here is what is the address bar displays.
https://secure.test.net/test/crtcheckout.cfm?CFID=143186CFTOKEN=60763772CFID=143186CFTOKEN=60763772

 
any thoughts?

Jeff Lucido [EMAIL PROTECTED] wrote:
Lari:

I have had the same problem in the past. One thing I did was when I was
ready to move to the SSL side of the site I had my form post to a CF
page where I check values, etc. and then do a CFLOCATION to the secure
address while using the attribute addtoken set to yes.

Another way I got around this in the past with a site using client
variables was to encode the session values into a WDDX packet, send it
in the URL string and then decode it on the other side. 

Either way should work pretty well.

Good luck,
-JSLucido

-Original Message-
From: lari trujillo [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 10:05 AM
To: CF-Talk
Subject: passing sessions between 2 sites on the same domain

have a shopping cart that it is losing all of its values when the user
hits the checkout button and takes them to my secure checkout page.
Example, the user is shopping at www.mystore.com and purchase several
items which are saved as session variables (session.mysession), they
then would click on the checkout button which goes to
https://secure.store.com, but all of the session variables are lost. 
I am linking the page like this 
a
href="">
target=_blank >
the values of the cart are not passing as I am getting a statement i
added to the application if there are no values on the cartyour
shopping cart is empty
The address bar displays 
https://secure.test.net/testappli/finalize.cfm?CID=W0716CFID=143186
CFTOKEN=60763772
when i click on checkout...Do i need to add anything else to avoid
losing my session? 
all advice will be appreciated. 
_

-

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]