# Too many session numbers per page request?

**URL:** <https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111>\
**Category:** Rails\
**Created:** [January 23, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111 "2007-01-23T19:42:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [January 23, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111/1 "2007-01-23T19:42:47Z")

</div>

If I view the source on one of my pages I see:

I belive that’s five sessions  
1168898271  
1169242655  
1169241657  
1169241658  
1169575655

When I look at the source for another site, such as this forum, I see:

And there’s only one session number  
1169215601

Anyone know what I should be looking at that might be creating the  
mutliple session numbers per page request? My tmp/sessions list gets  
long quickly also. I think it’s effecting my development enviroment  
robustness.

Thanks,  
DAN

---

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [January 23, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111/2 "2007-01-23T19:58:51Z")

</div>

On Tue, Jan 23, 2007 at 07:42:47PM +0100, DAN wrote:

> \<script src="/javascripts/rico\_corner.js?1169575655" 1169242655 1169241657 1169241658 1169575655

Those are the modification times of the javascript files. When the file  
is  
edited, the number changes thereby wiping out the browser’s cache of  
that  
file so your new javascript is always used.

## marcel

Marcel Molina Jr. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [January 23, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111/3 "2007-01-23T20:26:55Z")

</div>

DAN wrote:

> type=“text/javascript”\>  
> 1169241657  
> 1169241658  
> 1169575655

> Thanks,  
> DAN

AFAIK, they’re not session numbers, they’re the times the files were  
last changed (so the browsers will get a fresh copy when a file is  
updated instead of caching it).

> ruby -e ‘puts Time.at(1168898271)’  
> Mon Jan 15 16:57:51 EST 2007

So your copy of prototype.js was last updated on the 15th

---

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [January 23, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/too-many-session-numbers-per-page-request/83111/4 "2007-01-23T20:59:12Z")

</div>

Thanks for explaining that.

As I’m developing I’ve noticed that I’ll clear out my tmp/sessions,  
reload a page, then see a few new session files. Since I’m the only  
person that knows the url to this area of my site that seems peculiar.  
I’m using that Rails 1.1.6 that my host provides so I can’t use the  
lovely “session :new\_session =\> false” yet.

Is it expected that one page load can create multiple session files  
also?

Thanks,  
DAN
