Forum: Ruby on Rails Too many session numbers per page request?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9cb4de6b61b568a8c13d866ccf3b3433?d=identicon&s=25 DAN (Guest)
on 2007-01-23 19:42
If I view the source on one of my pages I see:
<script src="/javascripts/prototype.js?1168898271"
type="text/javascript"></script>
<script src="/javascripts/effects.js?1169242655"
type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1169241657"
type="text/javascript"></script>
<script src="/javascripts/controls.js?1169241658"
type="text/javascript"></script>
<script src="/javascripts/rico_corner.js?1169575655"
type="text/javascript"></script>
<script src="/javascripts/ajax_scaffold.js?1169575655"
type="text/javascript"></script>
<script src="/javascripts/dhtml_history.js?1169575655"
type="text/javascript"></script>
<script src="/javascripts/application.js?1168898271"
type="text/javascript"></script>

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:
<script src="/javascripts/prototype.js?1169215601"
type="text/javascript"></script>
<script src="/javascripts/effects.js?1169215601"
type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1169215601"
type="text/javascript"></script>
<script src="/javascripts/controls.js?1169215601"
type="text/javascript"></script>
<script src="/javascripts/application.js?1169215601"
type="text/javascript"></script>

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
Cee0292fffa691f1fb320d5400200e99?d=identicon&s=25 Marcel Molina Jr. (Guest)
on 2007-01-23 19:58
(Received via mailing list)
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. <marcel@vernix.org>
11ba162129ed5961b234b49f5c9ee624?d=identicon&s=25 Benjamin Ritcey (Guest)
on 2007-01-23 20:26
(Received via mailing list)
DAN wrote:
> type="text/javascript"></script>
> 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
9cb4de6b61b568a8c13d866ccf3b3433?d=identicon&s=25 DAN (Guest)
on 2007-01-23 20:59
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
This topic is locked and can not be replied to.