Forum Moderators: DixonJones

Message Too Old, No Replies

one page view - is cookie set?

how can I see if browser that visits 1 page is accepting cookies

         

jarboy

10:41 am on Feb 28, 2005 (gmt 0)

10+ Year Member



Hi,

If we have a single page visit how might I find out if we have set a cookie (assuming there was no previuosly set cookie)? I was thinking iframes or something might allow it. Or a page refresh maybe.

carguy84

11:01 pm on Feb 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check to see if there is a cookie already set at the top of the code. If not, try and add a cookie at the top of the code, then check for it again at the bottom of the code.

Lord Majestic

11:07 pm on Feb 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Additional objects such as images that will be requested from your page should have cookie set in their requests. They can be cached from previous visit however. You can create a logging script that will be called in place of a small 1x1 transparent image.

mattglet

1:42 am on Mar 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You cannot set and retrieve a cookie on the same page. You need to set the cookie on one page, then check for it on another.

The iframe solution might work, though. Give it a shot, and report back.