473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

cookieless session state and image caching

Does cookieless session state (with the sessionid embedded into the url)
interfere with the browser's retrieval of cached images from one session to
the next? Does the sessionid embedded into the url effectively limit
client-side image caching to the lifetime of the session?
Thanks
Jake
Nov 19 '05 #1
4 2672
depends. if the image url include the session id, then they only be cached
for the session. if your image urls are not munged then they are cached.
normally images are not mapped to asp.net, so the cookie munger will not see
them.

-- bruce (sqlwork.com)
"Jake" <Ja**@spamspamspam.org> wrote in message
news:eC*************@TK2MSFTNGP14.phx.gbl...
Does cookieless session state (with the sessionid embedded into the url)
interfere with the browser's retrieval of cached images from one session
to
the next? Does the sessionid embedded into the url effectively limit
client-side image caching to the lifetime of the session?
Thanks
Jake

Nov 19 '05 #2
Thanks for the clarification, Bruce. The image urls in the HTML are
relative:

<img src="images/cars/mini.gif">

But the url of the page is munged. I take it that the browser knows how to
ignore the sessionid in the addressbar and can figure out from the HTTP
header that the image above resides at:

www.somedomain.com/images/cars/mini.gif

even if the url of the page on which the image appears contains the
sessionid?

http://www.somedomain.com/(54gfb5zbn.../somepage.aspx

When I look at the image properties in IE, the url lacks the session id.
However, according to PageInfo in Firefox (media tab), the url of the image
contains the sessionid.

Are there any sniffers that would show me whether images are being
downloaded or retrieved from local browser cache?

Regards
Jake
"Bruce Barker" <br******************@safeco.com> wrote in message
news:#g*************@TK2MSFTNGP14.phx.gbl...
depends. if the image url include the session id, then they only be cached
for the session. if your image urls are not munged then they are cached.
normally images are not mapped to asp.net, so the cookie munger will not see them.

-- bruce (sqlwork.com)
"Jake" <Ja**@spamspamspam.org> wrote in message
news:eC*************@TK2MSFTNGP14.phx.gbl...
Does cookieless session state (with the sessionid embedded into the url)
interfere with the browser's retrieval of cached images from one session
to
the next? Does the sessionid embedded into the url effectively limit
client-side image caching to the lifetime of the session?
Thanks
Jake


Nov 19 '05 #3
A followup. When I check my Temporary Internet Files folder, the same image
is being cached many many times, and the only difference among the urls is
the sessionid. So it would appear that while images are being cached, the
benefit of the caching extends only for the duration of the session. Next
time I visit the website, I must download a new copy of the image because
there will be a new sessionid in the url and the browser won't find the
image in its cache folder.
Jake
"Jake" <Ja**@spamspamspam.org> wrote in message
news:#q**************@tk2msftngp13.phx.gbl...
Thanks for the clarification, Bruce. The image urls in the HTML are
relative:

<img src="images/cars/mini.gif">

But the url of the page is munged. I take it that the browser knows how to ignore the sessionid in the addressbar and can figure out from the HTTP
header that the image above resides at:

www.somedomain.com/images/cars/mini.gif

even if the url of the page on which the image appears contains the
sessionid?

http://www.somedomain.com/(54gfb5zbn.../somepage.aspx

When I look at the image properties in IE, the url lacks the session id.
However, according to PageInfo in Firefox (media tab), the url of the image contains the sessionid.

Are there any sniffers that would show me whether images are being
downloaded or retrieved from local browser cache?

Regards
Jake
"Bruce Barker" <br******************@safeco.com> wrote in message
news:#g*************@TK2MSFTNGP14.phx.gbl...
depends. if the image url include the session id, then they only be cached for the session. if your image urls are not munged then they are cached.
normally images are not mapped to asp.net, so the cookie munger will not

see
them.

-- bruce (sqlwork.com)
"Jake" <Ja**@spamspamspam.org> wrote in message
news:eC*************@TK2MSFTNGP14.phx.gbl...
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to
the next? Does the sessionid embedded into the url effectively limit
client-side image caching to the lifetime of the session?
Thanks
Jake



Nov 19 '05 #4
You have to use absolute urls for your images, I believe. Absolute urls
won't get munged, and so the browser will cache a copy of the image with the
unmunged absolute url as its internet address.
Timo

"Jake" <Ja**@spamspamspam.org> wrote in message
news:#z**************@tk2msftngp13.phx.gbl...
A followup. When I check my Temporary Internet Files folder, the same image is being cached many many times, and the only difference among the urls is
the sessionid. So it would appear that while images are being cached, the
benefit of the caching extends only for the duration of the session. Next
time I visit the website, I must download a new copy of the image because
there will be a new sessionid in the url and the browser won't find the
image in its cache folder.
Jake
"Jake" <Ja**@spamspamspam.org> wrote in message
news:#q**************@tk2msftngp13.phx.gbl...
Thanks for the clarification, Bruce. The image urls in the HTML are
relative:

<img src="images/cars/mini.gif">

But the url of the page is munged. I take it that the browser knows how

to
ignore the sessionid in the addressbar and can figure out from the HTTP
header that the image above resides at:

www.somedomain.com/images/cars/mini.gif

even if the url of the page on which the image appears contains the
sessionid?

http://www.somedomain.com/(54gfb5zbn.../somepage.aspx

When I look at the image properties in IE, the url lacks the session id.
However, according to PageInfo in Firefox (media tab), the url of the

image
contains the sessionid.

Are there any sniffers that would show me whether images are being
downloaded or retrieved from local browser cache?

Regards
Jake
"Bruce Barker" <br******************@safeco.com> wrote in message
news:#g*************@TK2MSFTNGP14.phx.gbl...
depends. if the image url include the session id, then they only be cached for the session. if your image urls are not munged then they are cached. normally images are not mapped to asp.net, so the cookie munger will
not
see
them.

-- bruce (sqlwork.com)
"Jake" <Ja**@spamspamspam.org> wrote in message
news:eC*************@TK2MSFTNGP14.phx.gbl...
> Does cookieless session state (with the sessionid embedded into the

url) > interfere with the browser's retrieval of cached images from one session > to
> the next? Does the sessionid embedded into the url effectively limit
> client-side image caching to the lifetime of the session?
> Thanks
> Jake
>
>



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
5
by: Grant | last post by:
Can anyone explained to me how the session state - cookieless = true work? Where is the information stored in the URL? I am concern hat some one can use that to the advantage (hacker). I have...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
2
by: Daniel Malcolm | last post by:
Hi I just wanted to confirm that the "cookieless" attribute of the session section of the web.config file is an "all or nothing" setting. For some reason I thought that the following was the...
4
by: Paul W | last post by:
Hi - I don't want to rely on my users having cookies enabled. If I use Cookieless=True it of course mangles the urls which means there is no browser caching of the pages, so it is slow. ...
13
by: Water Cooler v2 | last post by:
What do you mean by a cookieless session state? When you set the sessionState section's cookieless attribute to true in the web.config file, what does that mean? I read this...
1
by: Mark Olbert | last post by:
I'm building an ASPNET2 website which uses forms authentication but does not use the Microsoft-supplied membership providers (mostly because I don't want to create my own provider at this point, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.