G
Guest
Hi,
I am trying to refresh the cookie to make sure the timeout is reset by
simply calling a blank page on my site. I am doing this because I have an
external site hosted in my web that isn't sharing the auth mechanism. I can
test this easily by simply having a hidden iframe and use a javascript call
to refresh my sites blank page every time the external site loads a page and
this does work fine, the cookie is refreshed as expected if half the
expiration time has expired.
My question is about using another way of doing the refresh. I had tried
using an XMLHttpRequest initially as it was a bit neater, but for some reason
this did not cause the cookie to be reset. I had thought that the forms auth
module would process the request regardless of how it was generated and thus
reset the cookie expiration if that was needed, but I guess I don't really
understand how XMLHTTPRequest really works at all! Can anyone help explain? I
mean does it not send the cookie in the first place or is something else
going on under the covers?
Thanks
Dan
I am trying to refresh the cookie to make sure the timeout is reset by
simply calling a blank page on my site. I am doing this because I have an
external site hosted in my web that isn't sharing the auth mechanism. I can
test this easily by simply having a hidden iframe and use a javascript call
to refresh my sites blank page every time the external site loads a page and
this does work fine, the cookie is refreshed as expected if half the
expiration time has expired.
My question is about using another way of doing the refresh. I had tried
using an XMLHttpRequest initially as it was a bit neater, but for some reason
this did not cause the cookie to be reset. I had thought that the forms auth
module would process the request regardless of how it was generated and thus
reset the cookie expiration if that was needed, but I guess I don't really
understand how XMLHTTPRequest really works at all! Can anyone help explain? I
mean does it not send the cookie in the first place or is something else
going on under the covers?
Thanks
Dan