I hate IE and cookies.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

I hate IE and cookies.

Post by theda »

But I love cookies ...tasty buggers they are.

For some reason, when using setcookie() it all works out just dandy... But for some reason in IE it sets my website to "Restricted Sites" and can't set cookies (Thus disabling IE viewers ability to...um...VIEW my website ^_^) I looked at another thread about some P3P header stuff, and I put it in, but nothing changed... Still show up as Restricted Sites... How do I get around that piece of Microsoft <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Why don't you go to Options and unset it? I'm under the impression that Internet Explorer doesn't automatically put sites in the Restricted area.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

No, on my computer, it doesn't automatically put me on the restricted sites list, but every user who I've talked to has said they couldn't view my website because it put me under Restricted Sites and decided not to save the cookie as it should. And I didn't ask for you to tell me to "Go to your internet options and change it," I'm rather further than that option. I can't possibly change all my users settings.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Then your site must be misbehaving in some way that is causing IE to automatically register the site under Restricted Sites. Does your site use ActiveX or anything like that?
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

I have an advertisement popup thats hard-coded into my website (Webhost -_-;). That uses javascript and other random <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> that probably shouldn't be there ^_^.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Okay, here's what I think is happening. IE comes preloaded with a list of "Restricted Sites". Your host is one of them.

In order to use cookies, then, you'll have to give your users instructions on how to move this site out of the restricted zone, or find a better host. What is your host anyway?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Well, you could post the link to see if we get the same result, and so we can test and find out why its happening.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

http://dumbass.ionichost.com I know my webhost's advertisement probably <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> off IE, but I use <noscript> to nullify it's execution.

I want to know if there is a scripting way to get around the restricted sites thing. ... Or get a new host works for me, but I haven't found a good one yet.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

theda wrote:http://dumbass.ionichost.com I know my webhost's advertisement probably <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> off IE, but I use <noscript> to nullify it's execution.

I want to know if there is a scripting way to get around the restricted sites thing. ... Or get a new host works for me, but I haven't found a good one yet.
This is why I asked. :)

For me, on IE6.0.2800.1106, I see it as an "Internet" site, NOT restricted.

My cookie:

Code: Select all

ver
en
dumbass.ionichost.com/
1024
150658048
29730787
301659408
29724752
*
the
see
dumbass.ionichost.com/
1024
150658048
29730787
303559408
29724752
*
All stored, no problems.

I'm curious now why you are getting restricted site for it.. it doesn't happen for me.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

For me, IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

It IS in the restricted sites. I don't know, however, if it got added when I surfed there, or it was always there. Site doesn't work either (heh).

Entry is *.ionichost.com in Restricted Sites list.

Here's what I will suggest: make use of PHP's magical URL parsing ability's and have it toss around the language in all the URLs. Sure, it's clunky, but it'll get around IE for now.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Could you, by any chance, explain that ^_^;; Or mention where I could learn about doing that?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Well, basically, the idea is to pass the language variable around a different way, like a GET variable.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Huh? Oh, by the way, I cant use the newer version of $_GET =D... <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>-ass version of PHP... (Yay, another point for my host!)

Mind giving examples? I don't learn by lecture, only example.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Meh, that makes things harder. You should get a new host.

I can't really give you an example, because I've never done it before, but here's the configuration option:

url_rewriter.tags

And here's a related page: http://us2.php.net/manual/en/ref.session.php

You should be able to enable it via ini_set()

Then, use sessions for everything.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Did I mention I am not my own host, therefore have no access to that kind of stuff ^_^;; I understand what you're saying with the 'pass variable through $_GET', but that doesn't quite set a cookie...
Post Reply