Skip to main content
Participant
February 28, 2008
Question

Using a cookie from one application web site to another application

  • February 28, 2008
  • 1 reply
  • 323 views
Hi,

I have a big application written in ASP/CF. In this application, I added a link to my small application in CF. Both apps are on the same server but separate websites. I liked to use the user admin functionality that is available in the big application into my small apps. What I need is the cookie userid from the big application so that I can use it. How do I go about that? Can you please provide a sample code?

Thanks in advance.
This topic has been closed for replies.

1 reply

Inspiring
February 28, 2008
meeyaw wrote:
> Hi,
>
> I have a big application written in ASP/CF. In this application, I added a
> link to my small application in CF. Both apps are on the same server but
> separate websites. I liked to use the user admin functionality that is
> available in the big application into my small apps. What I need is the cookie
> userid from the big application so that I can use it. How do I go about that?
> Can you please provide a sample code?
>
> Thanks in advance.
>

Cookies, by definition, are web site specific. You can set them to be
shared across sub-domains, but you can not have one domain read another
domains cookies. To do what you want one of the applications will have
to pass the desired value to the other in some manner of your choosing.