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

Where are cookies created in Javascript stored?

83
Hi,

In my application i create a cookie using javascript using a function like this.

Expand|Select|Wrap|Line Numbers
  1. function setCookie(c_name,value,expiredays)
  2. {
  3.     var exdate=new Date();
  4.     exdate.setDate(exdate.getDate()+expiredays);
  5.     document.cookie=c_name+ "=" +escape(value)
  6.                                 +((expiredays==null) ? "" : ";expires="
  7.                                 +exdate.toGMTString());
  8.     //alert ("date=" + exdate.toGMTString());
  9. }
  10.  
The problem is i can't find it on the machine (Vista ie7). Cookies created using asp scripts show under the temporary internet files but seemingly not those created using javascript.

Can anyone tell me where they are stored pls...

Thanks
Jun 5 '08 #1
5 1033
acoder
16,027 Expert Mod 8TB
It varies depending on the browser and the OS. In XP, IE would store in "Documents and Settings". I'm not sure about Vista. Other browsers may store in, for example, the Application Data folder.
Jun 5 '08 #2
TimSki
83
well i feel i've searched everywhere. i can see other cookies in various folders but not t the javascript one. Clearly, it's there somewhere as otherwise the application wouldn't work. Is it possible that is is strored as a session cookie ? That said it still persists if i close bowser and/or reboot my pc ???
Jun 9 '08 #3
acoder
16,027 Expert Mod 8TB
You may have to unhide hidden folders. If this doesn't help, you may get a good response in the Windows forum since this seems to be a Vista issue.
Jun 9 '08 #4
TimSki
83
no it's not a vista issue, i have the same problem in xp. I've tried searching all hiffen folders also but to no avail...
Jun 9 '08 #5
acoder
16,027 Expert Mod 8TB
Just so that this doesn't end up being much ado about nothing, why exactly do you need to know where the cookies are stored? If you want to read or delete them, you can use JavaScript to do that.
Jun 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: changed | last post by:
I have an application that works almost all of the time but there is an inconsistent error with some browsers (some Mac, some PC). It seems that the cookie won't get written before the redirect. ...
3
by: Marcin Gorzynski | last post by:
Hi Our partner is using our page in a frame. That couses a problem because our domain is unable to issue the cookie also session does not work. each time you click in the frame new session is...
1
by: kublai khan | last post by:
I set temporary cookies that I can easily view with Mozilla. With IE (6), however, I cannot find them in the Temporary Internet Files folder with the page still open. It looks like the cookies are...
6
by: Marcus | last post by:
Hello all, This is baffling me. I am starting a session and I know it is setting a cookie on my computer - I called getallheaders() and see that it is setting the cookie, and it is also...
3
by: mosesdinakaran | last post by:
Hi Where does the cookies stored in the client machine that php creates after calling session_start() function. I am using IE... I checked in the following folders but no cookies are stored....
24
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I see in javascript if a web browser accepts cookies?...
5
by: jheines | last post by:
I am trying to explain how cookies and sessions work in a class I teach, but I have hit a wall when it comes to the interaction between cookies and the state of the privacy settings in Internet...
3
by: Simon Dean | last post by:
Hi, I believe I have a website (I didn't do the original coding) which uses JavaScript/ASP to generate cookies. It's a shopping cart application called UCart I believe. The technologies...
7
by: cmrchs | last post by:
Hi, In Windows Vista: where does asp.net write its cookies? I use HttpCookie objCookie = new HttpCookie("nameCookie"); in Win2000 (and later) they used to be in C:\Documents and...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.