Skip to main content
January 19, 2010
Question

How can we access the cookie set by cfheader in the same request?

  • January 19, 2010
  • 1 reply
  • 519 views

I've set a cookie in my application.cfm using cfheader and in the same request i need to access the cookie. How can i do this?

    This topic has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    January 19, 2010

    Unless you know the values you're setting in the cookie explicitly then I don't know if you can - not sure if it's one of those things whereby a cookie doesn't exist until it's hit their browser, and if you page hasn't finished rendering then it hasn't hit their browser.

    I'd suspect you'll try it and either it'll work or it won't.

    If you're setting the cookie explicitly with you own UUID's or similar you will of course know what you'll be setting it to.

    If that made any sense.

    Which I'm pretty sure it didn't.

    O.

    Inspiring
    January 20, 2010

    If you're setting the cookie explicitly with you own UUID's or similar you will of course know what you'll be setting it to.

    If that made any sense.

    Which I'm pretty sure it didn't.

    Well it is the basis of the reply I was going to make, so it makes sense to me...

    --

    Adam