odd cookie issue (I think)

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

Our CMS application, when you log in, writes a cookie to your computer and
stores a variety of permission variables that pertain to you.

Whenever we update data in the CMS in our application, we grab these
variables from the cookie.

This works. Usually. Once in a while, though, it doesn't grab the variable
from the cookie. It's just empty, which gives us an error down the road. Hit
save again, and things are back to normal.

Any reason for this?

-Darrel
 
darrel said:
Our CMS application, when you log in, writes a cookie to your computer and
stores a variety of permission variables that pertain to you.

Whenever we update data in the CMS in our application, we grab these
variables from the cookie.

This works. Usually. Once in a while, though, it doesn't grab the variable
from the cookie. It's just empty, which gives us an error down the road. Hit
save again, and things are back to normal.

Any reason for this?

-Darrel
Whenever I add or change a cookie, I always reset the expiration and add it
back to the response cookie. I read somewhere that you need to do that even
if the original cookie it not expired. You may want look into that
possibility.
Mike
 
Your job is to reproduce this behavior consistently

Ha! Yes. I do wish... ;o)

-Darrel
 
darrel said:
Ha! Yes. I do wish... ;o)

-Darrel
Its actually half a joke. ;) If you're wanting help, you're going to
need to trace this back to the offending issue.

Have fun! :)

Regards
Ray
 
Its actually half a joke. ;) If you're wanting help, you're going to
need to trace this back to the offending issue.

Oh, I know. I wish I could. We can't replicate it though. It's more like a 1
out of 10 times type of thing.

We're doing some shot-in-the-dark stuff, but thought I'd ask in case there
is some known issue with using cookies like this.

-Darrel
 
Whenever I add or change a cookie, I always reset the expiration and add
it
back to the response cookie. I read somewhere that you need to do that
even
if the original cookie it not expired. You may want look into that

Good idea...will check into that!

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top