473,404 Members | 2,179 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,404 software developers and data experts.

How long does a session cookie last?

Hi All,

According to a book, the cookie without expires lasts the browser
session. I think a browser session ends if you close all the browser
windows. I setup a cookie without expires in IE6 using JavaScript and
closed it. When I open IE agian, the cookie is still there. Why?
Does it mean that a session cookie will be deleted at some time after
the browser session? (Just like a stored cookie will be deleted at
some time after the Expires attribute)

Does the browser delete the cookie or the OS delete the cookie?

Thank you.

Oct 31 '05 #1
4 3457
I happen to be using the Firefox browser at the moment. On it, I can
view all cookies. When you highlight one of the cookies listed, a
screen shows when the cookie expires, among other things. So the first
thing you need to do is find out when the cookie expires. This might
help answer your question. At least on the Windows XP OS, if something
changes a registry setting, it often does not take effect until Windows
is shut down and then rebooted. So also turn off your computer, not
just the browser, and see what happens. I believe you can also find
cookies listed on IE6 and perhaps find the date a cookie expires, but I
never use it for this. I find Firefox much more simple to navigate for
this sort of thing.

Oct 31 '05 #2
I couldn't find the cookie as a file because it was not saved. I knew
it was there when I restarted the browser since the page remembered it.

Nov 1 '05 #3
Do you need more info to help?

Nov 2 '05 #4
yi*************@gmail.com wrote:
I couldn't find the cookie as a file because it was not saved.
Wait a minute. Did you not write before that the cookie was still there?
So there has to be a file for it in Temporary Internet Files folder (if
you used IE or an IE-based browser on Windows).
I knew it was there when I restarted the browser since the page
remembered it.


Which page are we talking about (URL)?
PointedEars

P.S.: Please read <http://jibbering.com/faq/> on how to post to cljs,
especially on how to quote.
Nov 2 '05 #5

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

Similar topics

6
by: gsb | last post by:
I trying to use sessions to save a user name/id after login. If the user leaves the site and comes back, how do I force a new session and login?
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...
7
by: Henry Hartley | last post by:
I've got a PHP system working on a development server (Windows 2000/IIS5/PHP 4.3.3) but it doesn't seem to be working quite right on the testing server (same except PHP 4.2.3). I upgraded the PHP...
8
by: Matt | last post by:
I want to know if user disable cookie, will the session still working? Actually I remember we could disable cookie in IE before (not sure what version, but I couldn't see the option anymore. Now I...
4
by: 2obvious | last post by:
I'm trying to set a cookie to expire 10 seconds after it is created. However, it seems to last until I close all browser windows. var objDate = new Date(); objDate.setSeconds(...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
3
by: Ken Varn | last post by:
In looking into Web Services, I noticed that they can maintain Session variables. How does a web service distinguish different sessions? Does this occur when the client creates an instance of the...
1
by: peterlan | last post by:
Hello, I have an issue with a long-running import process in our asp.net app (1.1). After the user initiates an import, we're trying to make periodic xmlhttp requests to update a progress bar. In...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.