RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
Yeah I wish that was an option... but it would require changing too many
pages. 

Neal Bailey
Internet Marketing Manager

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 1:04 PM
To: CF-Talk
Subject: Re: CF Cookie & ASP Cookie?

So look on the ASP side for a function to decode the cookie value  ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219482
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Cookie & ASP Cookie?

2005-09-28 Thread Bryan Stevenson
So look on the ASP side for a function to decode the cookie value  ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219480
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
Yeah I recalled the file because it said it was too long... was not sure
what to do. 

Anyway... yes I know it gets decoded correctly if I dump it using CFDump... 

But I need ASP and .Net to be able to read this same cookie. The problem is
that ASP when inserting the Cookie does not encode the URl string like CF
does. So when ASP tries to read the Cookie it gets all confused because it's
looking for the "&" as the delimiter but instead gets hung up on all the
encoded values. 

Hope this makes sense... I was hoping I could find a UDF or some how have it
not encode the string when save to the cookie. 

Neal Bailey
Internet Marketing Manager

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 12:34 PM
To: CF-Talk
Subject: Re: CF Cookie & ASP Cookie?

Oh yeah...and when you say "look at the cookie value" I assume you have 
actually opened the cookie file??  Try  and 
see if all the encoding goes away ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219479
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Cookie & ASP Cookie?

2005-09-28 Thread Bryan Stevenson
Oh yeah...and when you say "look at the cookie value" I assume you have 
actually opened the cookie file??  Try  and 
see if all the encoding goes away ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219476
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recall: CF Cookie & ASP Cookie?

2005-09-28 Thread Bryan Stevenson
LOL...too late ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
- Original Message - 
From: "Bailey, Neal" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Wednesday, September 28, 2005 10:30 AM
Subject: Recall: CF Cookie & ASP Cookie?


> Bailey, Neal would like to recall the message, "CF Cookie & ASP Cookie?".
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219475
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Cookie & ASP Cookie?

2005-09-28 Thread Bryan Stevenson
> --
> NeedUpdate%3D0%26Recognition%3DSupport%26EntityID%3D09%26AgentName%3
> DNeal%2BBailey%26Region%3D%26Rank%3D80%26AgentNumber%3D%2540%254009%2B
> --

That's just the value which gets encoded for URL travel (just like URLs 
dosame applies to cookies).

There should be no need to "stop it" because when you do access the value, 
the encoding shold be decoded automatically.  If not I beleive there is 
URLDecode() you can use.

HTH

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
- Original Message - 
From: "Bailey, Neal" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Wednesday, September 28, 2005 10:24 AM
Subject: RE: CF Cookie & ASP Cookie?


> OK guys... I think I have my Cookie kind of figured out now...
>
> It seems ASP does not actually store the cookie as complex variables but
> instead it's more of a comma delimited format using "&" as the delimiter.
>
> Anyway now that I figure out that problem I have another...
>
> I am storing the values in the cookie like this:
> -
>  "NeedUpdate=0&Recognition=Support&EntityID=09&AgentName=Neal+Bailey&
> Region=&Rank=80&AgentNumber=%40%4009+">
> 
> --
>
>
> But when I look at the cookie value it looks like this:
> --
> NeedUpdate%3D0%26Recognition%3DSupport%26EntityID%3D09%26AgentName%3
> DNeal%2BBailey%26Region%3D%26Rank%3D80%26AgentNumber%3D%2540%254009%2B
> --
>
> For some reason its converting the =,&,+ and % characters to another 
> format.
> Any idea how I can fix this?
>
> Man what a mess...
>
> Thanks again..
>
> Neal Bailey
> Internet Marketing Manager
>
> -Original Message-
> From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 28, 2005 10:46 AM
> To: CF-Talk
> Subject: RE: CF Cookie & ASP Cookie?
>
> Neal:
>
> ASP supports something it calls a "Cookie Dictionaries."  This is,
> essentially an associative array (or structure) of values all referenced 
> by
> the same variable name.  So, just like with ColdFusion structures you can 
> do
> something like:
>
> myStructure.myKey
>
> in ASP, you can do something like:
>
> Response.Cookies("myStructure")("myKey")
>
> In order to support this, ASP creates a cookie named "myStructure" (or
> whatever you specify as the name) and sets the cookie value to something
> like:
>
> key1=value1&key2=value2
>
> So, to duplicate your ASP code in ColdFusion, you'll need code like the
> following:
>
> 
> 
> 
> 
> 
> 
>
> Note that when you retrieve this Cookie via CF, you'll have to parse the
> string and break it up into its original pieces.  You could use code like
> the following:
>
> 
> 
> 
> 
> 
>
> And then access each piece via code like:
>
> RSHold["AgentNumber"]
>
> Note, none of this code is tested so there might be some minor issues. 
> But
> the logic should be pretty sound.
>
> HTH
>
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 942-5378
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
>
>
>> -Original Message-
>> From: Bailey, Neal [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, September 27, 2005 5:43 PM
>> To: CF-Talk
>> Subject: CF Cookie & ASP Cookie?
>>
>>
>> Hey Guys I have been searching everywhere on this and I can't
>> seem to figure
>> this out. I am only familiar with using CF Cookies in the
>> standard way but I
>> have this asp site that I am having to port over to CF and I need to 
>> write
>> cookies in CF much the same way we did using ASP. But it seems
>> that with ASP
>> you can give the Cookie a general name to refer to it by. But I
>> am having a
>> hard time figuring this out in CF or if it's even possible.
>>
>> Here is an example of our ASP Cookie...
>>
>>   Response.Cookies("RSHold")("AgentNumber") = RSAgent("AgentNumber")
>>   Response.Cookies("RSHold")("AgentName") =
>> RTrim(RSAgent("AgentFirst"))+ "
>> " + RTrim(RSAgent("AgentLast"))
>>   Response.Cookies("RSHold")("Rank") = RSAgent("CurrentRank")
>>   Response.Cookies("RSHold&q

RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
OK guys... I think I have my Cookie kind of figured out now... 

It seems ASP does not actually store the cookie as complex variables but
instead it's more of a comma delimited format using "&" as the delimiter. 

Anyway now that I figure out that problem I have another... 

I am storing the values in the cookie like this: 
-


--


But when I look at the cookie value it looks like this:
--
NeedUpdate%3D0%26Recognition%3DSupport%26EntityID%3D09%26AgentName%3
DNeal%2BBailey%26Region%3D%26Rank%3D80%26AgentNumber%3D%2540%254009%2B
--

For some reason its converting the =,&,+ and % characters to another format.
Any idea how I can fix this?

Man what a mess... 

Thanks again..  

Neal Bailey
Internet Marketing Manager

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219473
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Recall: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
Bailey, Neal would like to recall the message, "CF Cookie & ASP Cookie?".

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219472
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
OK guys... I think I have my Cookie kind of figured out now... 

It seems ASP does not actually store the cookie as complex variables but
instead it's more of a comma delimited format using "&" as the delimiter. 

Anyway now that I figure out that problem I have another... 

I am storing the values in the cookie like this: 
-


--


But when I look at the cookie value it looks like this:
--
NeedUpdate%3D0%26Recognition%3DSupport%26EntityID%3D09%26AgentName%3
DNeal%2BBailey%26Region%3D%26Rank%3D80%26AgentNumber%3D%2540%254009%2B
--

For some reason its converting the =,&,+ and % characters to another format.
Any idea how I can fix this?

Man what a mess... 

Thanks again..  

Neal Bailey
Internet Marketing Manager

-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 10:46 AM
To: CF-Talk
Subject: RE: CF Cookie & ASP Cookie?

Neal:

ASP supports something it calls a "Cookie Dictionaries."  This is,
essentially an associative array (or structure) of values all referenced by
the same variable name.  So, just like with ColdFusion structures you can do
something like:

myStructure.myKey

in ASP, you can do something like:

Response.Cookies("myStructure")("myKey")

In order to support this, ASP creates a cookie named "myStructure" (or
whatever you specify as the name) and sets the cookie value to something
like:

key1=value1&key2=value2

So, to duplicate your ASP code in ColdFusion, you'll need code like the
following:








Note that when you retrieve this Cookie via CF, you'll have to parse the
string and break it up into its original pieces.  You could use code like
the following:







And then access each piece via code like:

RSHold["AgentNumber"]

Note, none of this code is tested so there might be some minor issues.  But
the logic should be pretty sound.

HTH

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Bailey, Neal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 5:43 PM
> To: CF-Talk
> Subject: CF Cookie & ASP Cookie?
>
>
> Hey Guys I have been searching everywhere on this and I can't
> seem to figure
> this out. I am only familiar with using CF Cookies in the
> standard way but I
> have this asp site that I am having to port over to CF and I need to write
> cookies in CF much the same way we did using ASP. But it seems
> that with ASP
> you can give the Cookie a general name to refer to it by. But I
> am having a
> hard time figuring this out in CF or if it's even possible.
>
> Here is an example of our ASP Cookie...
>
>   Response.Cookies("RSHold")("AgentNumber") = RSAgent("AgentNumber")
>   Response.Cookies("RSHold")("AgentName") =
> RTrim(RSAgent("AgentFirst"))+ "
> " + RTrim(RSAgent("AgentLast"))
>   Response.Cookies("RSHold")("Rank") = RSAgent("CurrentRank")
>   Response.Cookies("RSHold")("EntityID") = RSAgent("EntityID")
>   Response.Cookies("RSHold").Path="/"
>
> I need to build this same Cookie using CF but cant figure it out. Am I
> missing something?
>
> This is what I have so far for CF but it's not the same...
>
> 
>  path="/">
>  path="/">
>
> Any help on this would be grateful thanks.
>
> Neal Bailey
> Internet Marketing Manager
>
>
>
> 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219470
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Mosh Teitelbaum
Neal:

ASP supports something it calls a "Cookie Dictionaries."  This is,
essentially an associative array (or structure) of values all referenced by
the same variable name.  So, just like with ColdFusion structures you can do
something like:

myStructure.myKey

in ASP, you can do something like:

Response.Cookies("myStructure")("myKey")

In order to support this, ASP creates a cookie named "myStructure" (or
whatever you specify as the name) and sets the cookie value to something
like:

key1=value1&key2=value2

So, to duplicate your ASP code in ColdFusion, you'll need code like the
following:








Note that when you retrieve this Cookie via CF, you'll have to parse the
string and break it up into its original pieces.  You could use code like
the following:







And then access each piece via code like:

RSHold["AgentNumber"]

Note, none of this code is tested so there might be some minor issues.  But
the logic should be pretty sound.

HTH

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Bailey, Neal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 5:43 PM
> To: CF-Talk
> Subject: CF Cookie & ASP Cookie?
>
>
> Hey Guys I have been searching everywhere on this and I can't
> seem to figure
> this out. I am only familiar with using CF Cookies in the
> standard way but I
> have this asp site that I am having to port over to CF and I need to write
> cookies in CF much the same way we did using ASP. But it seems
> that with ASP
> you can give the Cookie a general name to refer to it by. But I
> am having a
> hard time figuring this out in CF or if it's even possible.
>
> Here is an example of our ASP Cookie...
>
>   Response.Cookies("RSHold")("AgentNumber") = RSAgent("AgentNumber")
>   Response.Cookies("RSHold")("AgentName") =
> RTrim(RSAgent("AgentFirst"))+ "
> " + RTrim(RSAgent("AgentLast"))
>   Response.Cookies("RSHold")("Rank") = RSAgent("CurrentRank")
>   Response.Cookies("RSHold")("EntityID") = RSAgent("EntityID")
>   Response.Cookies("RSHold").Path="/"
>
> I need to build this same Cookie using CF but cant figure it out. Am I
> missing something?
>
> This is what I have so far for CF but it's not the same...
>
> 
>  path="/">
>  path="/">
>
> Any help on this would be grateful thanks.
>
> Neal Bailey
> Internet Marketing Manager
>
>
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219451
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Ian Skinner
A cookie can only store a string.  So to store multiple values you need to 
store some kind of delineated string.

myvar=1,yourVar=2,joesVar=3

Using this method you can store as much data is you can fit into the current 
limit on the size of a cookie.  It is up to you to create and parse the sting.  
This is where the wddx tag can help.  It will parse complex data structures 
into an XML based string that can be stored into a cookie and then reverse the 
wddx packet back into a variable structure.




--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219444
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Cookie & ASP Cookie?

2005-09-28 Thread Bailey, Neal
Thanks Brian,

But I am still having problems figuring this out... I would things that if
ASP could store complex data types in a Cookie then shouldn't CF be able to
also. It seems more like an array of data that I need to store as a cookie. 

I am not a Cookie Master unless we are talking about "Nestlé" so could
someone give me an example of inserting multiple names and variables in a
cookie? 

The data that is being inserted into the cookie is coming from our DB and
its just simple login info for when they enter our Portal site. Since our
site has to continue using some of the ASP and .Net pages we need a way of
using the Cookies to maintain their Login Abilities and a few other details.


So my main problem is getting CF to write the Cookie the same way as ASP and
..Net did so they can all share the info without having to change all of or
asp pages. 

Well I hope all this makes sense. I have been looking everywhere on the net
that could help me figure this out... but have had no luck. Maybe it just
cant be done. 

AS for converting to a WDDX packet... I have no idea how to do that... maybe
this is the way. Could anyone give an example? Thank again for all the help.


Neal Bailey
Internet Marketing Manager

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219441
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Cookie & ASP Cookie?

2005-09-27 Thread Bryan Stevenson
Not 100% what the ASP code is doingbut it looks like  acookie named 
RSHold which conatins a structure with keys (agentNumber etc.)

AFAIK you can't store complex datatypes in cookies (such as 
structures).so my interpretation of the ASP cookie code may very well be 
wrong


If I am correct then your CF code is wrong as it's creating multiple cookies 
with names that match the strutcure keys (i.e. agentNumber etc.).

The only way I have managed to store complex datatypes ina  cookie in CF was 
to convert the strcuture or query into a WDDX packet and store that string 
in the cookie (requires deserealizing the cookie value when you need the 
values).

HTH

Perhaps knowing where the data is coming from in the ASP code would help 
(i.e. RSHold and RSAgent).

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219380
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


CF Cookie & ASP Cookie?

2005-09-27 Thread Bailey, Neal
Hey Guys I have been searching everywhere on this and I can't seem to figure
this out. I am only familiar with using CF Cookies in the standard way but I
have this asp site that I am having to port over to CF and I need to write
cookies in CF much the same way we did using ASP. But it seems that with ASP
you can give the Cookie a general name to refer to it by. But I am having a
hard time figuring this out in CF or if it's even possible. 
 
Here is an example of our ASP Cookie... 
 
  Response.Cookies("RSHold")("AgentNumber") = RSAgent("AgentNumber") 
  Response.Cookies("RSHold")("AgentName") = RTrim(RSAgent("AgentFirst"))+ "
" + RTrim(RSAgent("AgentLast")) 
  Response.Cookies("RSHold")("Rank") = RSAgent("CurrentRank") 
  Response.Cookies("RSHold")("EntityID") = RSAgent("EntityID") 
  Response.Cookies("RSHold").Path="/" 
 
I need to build this same Cookie using CF but cant figure it out. Am I
missing something?
 
This is what I have so far for CF but it's not the same... 
 



 
Any help on this would be grateful thanks. 
 
Neal Bailey
Internet Marketing Manager
 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219379
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54