Page 1 of 1

How Can I Detect Whether A User Is Using Cookies or not?

Posted: Wed Oct 30, 2002 10:49 am
by superwormy
I'd like to be able to detect whether or not a user is accepting cookies, and IF THEY ARE NOT, then be able to revert back to passing their Session ID through the URL.

Is there any way that I can detect whether or not a user is accepting cookies?

Posted: Wed Oct 30, 2002 11:04 am
by mydimension
i know you could set a cookie on one page and on another try and find it. im not exactly sure how you might detect this within the same script.

Posted: Wed Oct 30, 2002 11:09 am
by volka
since cookies are sent within the response header and the client does not send a confirmation probably no way......

Posted: Wed Oct 30, 2002 11:09 am
by superwormy
Yeah I realize that, I was hoping there was a better way, because the way I have it setup then I need to redirect the person or something fancy... hrmph.

Any other ideas?

Posted: Wed Oct 30, 2002 11:16 am
by mydimension
none i can think of.

just a point of note about your site indicated in your profile: in you html source you are throwing around directoy structures which is a potentially huge security risk.

Posted: Wed Oct 30, 2002 11:23 am
by superwormy
throwing around directory structures... what do you mean? do explain so I can fix it!

Posted: Wed Oct 30, 2002 11:27 am
by mydimension
well, at the top of the html source is a comment that looks like this:

Code: Select all

<!--- LogoSoftwear.com Header File /some/false/path/header.php --->
there are similar lines throughout your html source which expose your directory structure quite a bit.