Technology Questions

Go Back   Technology Questions > Software Questions > Internet > Internet Explorer

Internet Explorer Discuss IE7 or any other IE version.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-05-2009, 04:10 AM
radar
Newsgroup Contributor
 
Posts: n/a
Session bug?

I've found a session "bug" on IE (from 6.0 to 8.0)...
This simple script (test.php):

<?php
session_start();
$_SESSION['test'].=" - ";
print_r($_SESSION);
?>

don't works if domain name contains a "_" (session are deleted on
every reload).
In my case, the script works on:

http://test.mydomain.com:8080/test.php

but don't works on:

http://test_v1.mydomain.com:8080/test.php

Can you try?

PS: same script work on Firefox, Konqueror and Opera (latest versions)

Thanks,
Antonio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-05-2009, 04:10 AM
  #2 (permalink)  
Old 11-05-2009, 05:20 AM
Dan
Newsgroup Contributor
 
Posts: n/a
Re: Session bug?


"radar" <a.pasqua******.com> wrote in message
news:690b385d-d0ef-4e40-b089-30759ec93d61@v36g2000yqv.googlegroups.com...
> I've found a session "bug" on IE (from 6.0 to 8.0)...
> This simple script (test.php):
>
> <?php
> session_start();
> $_SESSION['test'].=" - ";
> print_r($_SESSION);
> ?>
>
> don't works if domain name contains a "_" (session are deleted on
> every reload).
> In my case, the script works on:
>
> http://test.mydomain.com:8080/test.php
>
> but don't works on:
>
> http://test_v1.mydomain.com:8080/test.php
>
> Can you try?
>
> PS: same script work on Firefox, Konqueror and Opera (latest versions)
>
> Thanks,
> Antonio



IE is very strict about domain name handling - the RFCs do not allow FQDNs
to contain an underscore, so IE will not allow a cookie to be set for one
that does.

--
Dan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 11-05-2009, 11:21 AM
VanguardLH
Newsgroup Contributor
 
Posts: n/a
Re: Session bug?

radar wrote:

> ... domain name contains a "_" ...


Use a valid domain name. Underscore are not a valid character in domain
names. Valid characters are:

- A through Z, inclusive
- 0 through 9, inclusive, except the URL name cannot start with a digit.
- Hyphen ("-").

http://www.faqs.org/rfcs/rfc1034.html
section 3.5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 11-06-2009, 02:00 AM
radar
Newsgroup Contributor
 
Posts: n/a
Re: Session bug?

On 5 Nov, 20:13, VanguardLH <V...@nguard.LH> wrote:
> radar wrote:
> > ... domain name contains a "_" ...

>
> Use a valid domain name. *Underscore are not a valid character in domain
> names. *Valid characters are:
>
> - A through Z, inclusive
> - 0 through 9, inclusive, except the URL name cannot start with a digit.
> - Hyphen ("-").
>
> http://www.faqs.org/rfcs/rfc1034.html
> section 3.5


ok.. this is true, but why IE contacts the domain? on syntax error on
domain name the browser should not send request and so on..
on other browsers all works well (and Bind DNS don't report errors on
zone with "_" into hostnames)

Thanks,
Antonio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 11-06-2009, 07:20 AM
Dan
Newsgroup Contributor
 
Posts: n/a
Re: Session bug?


"radar" <a.pasqua******.com> wrote in message
news:ebe72ce0-3cc0-4d9f-8214-fefe88e0bd1f@v30g2000yqm.googlegroups.com...
> On 5 Nov, 20:13, VanguardLH <V...@nguard.LH> wrote:
>> radar wrote:
>> > ... domain name contains a "_" ...

>>
>> Use a valid domain name. Underscore are not a valid character in domain
>> names. Valid characters are:
>>
>> - A through Z, inclusive
>> - 0 through 9, inclusive, except the URL name cannot start with a digit.
>> - Hyphen ("-").
>>
>> http://www.faqs.org/rfcs/rfc1034.html
>> section 3.5

>
> ok.. this is true, but why IE contacts the domain? on syntax error on
> domain name the browser should not send request and so on..
> on other browsers all works well (and Bind DNS don't report errors on
> zone with "_" into hostnames)


Bind DNS by default sets check-names to ignore. You need to reconfigure Bind
to use either warn or fail for the check-names setting - if you use SPF,
SRV, or any TXT records that need to have an underscore set it to warn or
otherwise Bind will reject your zone file; the use of underscores is allowed
in these records, they are deliberately used to make it very clear that
these are not hostnames.

--
Dan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: IE7 allow cookies for session Jason Internet Explorer 2 03-28-2009 05:30 PM
How to launch a new IE session, not another tab IanM Internet Explorer 3 04-02-2008 02:50 AM
how do you get into console session? John D Leonard -- Sage Windows Vista 1 03-15-2008 08:20 AM
IE7 tab shared session ssingh Internet Explorer 2 09-26-2007 09:00 PM
IE 6.0 Font Size Change Doesn't Stay from session to session YJ Windows XP 0 01-04-2007 06:37 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:01 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0