# Sessions change with IE

**URL:** <https://www.ruby-forum.com/t/sessions-change-with-ie/106411>\
**Category:** Rails\
**Created:** [June 10, 2007, 2:54am UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411 "2007-06-10T02:54:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [June 10, 2007, 2:54am UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411/1 "2007-06-10T02:54:13Z")

</div>

My (still under development) website:  
http://passport\_photo\_validator.onthegosystems.com  
causes Explorer to change sessions every call. No matter what I click  
on any page, a new session is generated. When I look at the log, I see  
that every call that’s made from IE gets a new session.

It doesn’t happen on Firefox. Sessions behave normally.

More strange is that it doesn’t happen on neither (Explorer, nor FF)  
on the development machine.

Any suggestions on how I can debug this?

What can I do to start poking around on what the browser needs to get  
from the server in order to continue a session?

Thanks,  
Amir

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [June 10, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411/2 "2007-06-10T15:06:21Z")

</div>

helzer wrote:

> Any suggestions on how I can debug this?
> 
> What can I do to start poking around on what the browser needs to get  
> from the server in order to continue a session?

IE is too stupid to handle URL’s with underscores. Replace with dash (-)  
and your problems will go away. On a related note, if you have two  
different apps one on [example.com](http://example.com) and another on [www.example.com](http://www.example.com) IE will  
fail to produce the right cookie for the [www.example.com](http://www.example.com) site.

–  
Cheers

- Jacob A.

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [June 10, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411/3 "2007-06-10T18:09:37Z")

</div>

Hi Jacob,

That fixed it.

Do you think that IE will work OK for two domains like this:  
[xxx.example.com](http://xxx.example.com)  
[yyy.example.com](http://yyy.example.com)

(but no [example.com](http://example.com))

Thanks,  
Amir

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [June 10, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411/4 "2007-06-10T19:33:47Z")

</div>

helzer wrote:

> Hi Jacob,
> 
> That fixed it.
> 
> Do you think that IE will work OK for two domains like this:  
> [xxx.example.com](http://xxx.example.com)  
> [yyy.example.com](http://yyy.example.com)

Yes, that should work.

–  
Cheers,

- Jacob A.

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [June 17, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/sessions-change-with-ie/106411/5 "2008-06-17T17:46:21Z")

</div>

Jacob A. wrote:

> IE is too stupid to handle URL’s with underscores.

Is it possible that uppercase causes the same problem?
