odd cookie issue (I think)

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
 
V

vMike

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
 
D

darrel

Your job is to reproduce this behavior consistently

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

-Darrel
 
R

Ray Booysen

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
 
D

darrel

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
 
D

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top