RE: Session and Client variable problems?

2003-11-12 Thread John Burns
I did this for a content management system for my clients.I wanted them to
be able to log in and edit the information on their site.Then, for my
convenience, I wanted to log in (once) and be able to just from site to site
and edit stuff without having to log in. Because of the domain/cookie issue,
what I did was create a separate domain that the people log into.For
instance, you might create cart.domain.com and have all of your different
carts point to that domain.Then they always stay on the same domain.Not
sure if that helps or meets your needs.



John Burns

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 1:29 PM
To: CF-Talk
Subject: Session and Client variable problems?

Ok, here it goes...

I have one domain (call it IP 1.1.1.1)

On this domain I have multiple sites, but they use redirects...

So, we have sites

A, B, C

If you ping any of these sites you get IP 1.1.1.1 they simply route to
different directories based on the server_name variable.

Ok so that explains that.

Each of the separate sites have an Application page that is set up basically
with the code below. Each sites has the exact same info in the App.cfm file
except for some path stuff that I use.

cfapplication name=eProduct 
clientmanagement=Yes 
setclientcookies=Yes 
sessionmanagement=yes

SESSIONTIMEOUT=#CreateTimeSpan(0,8,0,0)# 

APPLICATIONTIMEOUT=#CreateTimeSpan(0,8,0,0)# 
SETDOMAINCOOKIES=Yes

Ok, now on each of these sites you can order items. I do that with the code
below using a client variable.

cfset SC_cart = client.  Attributes.Cart 

So basically here is my problem

I want the cart to be globally available to all sites. I though setting my
domain cookie flag to yes would accomplish that but apparently in
conjunction with using client variables for my cart that is not the case.

Anyone got any ideas???

Thanks,
Stephen



_


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




Re: Session and Client variable problems?

2003-11-12 Thread Matt Robertson
setdomaincookies doesn't help you if you don't have a domain in play.numeric IPs don't count. :(

Found this out the hard way.Discovered my cfid and cftoken values were resetting themselves on every page view when I was working with setdomaincookies=yes in place prior to assigning a domain name.Now I develop without the setting and put it in only after a domain gets assigned to an IP.

--
---
 Matt Robertson,[EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
---

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