Too many session numbers per page request?


#1

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


#2

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


#3

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


#4

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