473,834 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JScript: Can't Programmaticall y Delete Cookies on Windows 2000 Professional

Dan
I persist the login info using cookies so that a user doesn't have to login
every time they come to our website, unless they previously logged out.
Everything works OK on W98 SE, and Windows XP Pro machines.

On a W2K machine, IE6.0.2800.1106 SP1, the following function won't delete
cookies, or deletes them but they're mysterioulsy re-created when the web
page is subsequently referenced. Therefore, a web user can't logout.

// =============== =============== ==============
// remove login cookies
// =============== =============== ==============
function KillLoginCookie s ( )
{
Response.Cookie s ( sCookieCustomer ID ) = '';
Response.Cookie s ( sCookieCustomer ID ).Expires = '01/01/1980';
Response.Cookie s ( sCookiePassword ) = '';
Response.Cookie s ( sCookiePassword ).Expires = '01/01/1980';
}

What am I missing here?

Jul 19 '05 #1
2 3096
"Dan" <tr*****@gte.ne t> wrote in message
news:uZ******** ******@TK2MSFTN GP09.phx.gbl...
I persist the login info using cookies so that a user doesn't have to login every time they come to our website, unless they previously logged out.
Everything works OK on W98 SE, and Windows XP Pro machines.

On a W2K machine, IE6.0.2800.1106 SP1, the following function won't delete
cookies, or deletes them but they're mysterioulsy re-created when the web
page is subsequently referenced. Therefore, a web user can't logout.

// =============== =============== ==============
// remove login cookies
// =============== =============== ==============
function KillLoginCookie s ( )
{
Response.Cookie s ( sCookieCustomer ID ) = '';
Response.Cookie s ( sCookieCustomer ID ).Expires = '01/01/1980';
Response.Cookie s ( sCookiePassword ) = '';
Response.Cookie s ( sCookiePassword ).Expires = '01/01/1980';
}

What am I missing here?


What is the code being used to create the cookies?
Jul 19 '05 #2
Dan
The cookies are created as follows:

Response.Cookie s ( sCookieCustomer ID ) = sLoginID;
Response.Cookie s ( sCookiePassword ) = sPassword;

// get a date 1 year in the future
var d = new Date;
var sDate = d.getDate ( ) + '/' + (d.getMonth ( ) + 1) + '/' +
(d.getFullYear ( ) + 1);

Response.Cookie s ( sCookieCustomer ID ).Expires = sDate;
Response.Cookie s ( sCookiePassword ).Expires = sDate;
"changed" <ch*****@change d.com> wrote in message
news:bj******** **@geraldo.cc.u texas.edu...
"Dan" <tr*****@gte.ne t> wrote in message
news:uZ******** ******@TK2MSFTN GP09.phx.gbl...
I persist the login info using cookies so that a user doesn't have to

login
every time they come to our website, unless they previously logged out.
Everything works OK on W98 SE, and Windows XP Pro machines.

On a W2K machine, IE6.0.2800.1106 SP1, the following function won't delete cookies, or deletes them but they're mysterioulsy re-created when the web page is subsequently referenced. Therefore, a web user can't logout.

// =============== =============== ==============
// remove login cookies
// =============== =============== ==============
function KillLoginCookie s ( )
{
Response.Cookie s ( sCookieCustomer ID ) = '';
Response.Cookie s ( sCookieCustomer ID ).Expires = '01/01/1980';
Response.Cookie s ( sCookiePassword ) = '';
Response.Cookie s ( sCookiePassword ).Expires = '01/01/1980';
}

What am I missing here?


What is the code being used to create the cookies?

Jul 19 '05 #3

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

Similar topics

7
4065
by: Phil Powell | last post by:
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes, the PHP script I run behaves according to this cookie existing or not) and run the script again. Everything runs fine, but the cookie is never set again. Does anyone know why this happens? I am using Win2000 Professional with IE 6. Cookies are being set with PHP and Javascript. Thanx Phil
6
16961
by: Ken Varn | last post by:
Sometimes when I try to close my managed C++ application, the following dialog displays in Win 2000 Pro: The title of the dialog is "Server Busy". The message is "This action cannot be completed because the other program is busy. Choose 'Switch to' to activate the busy program and correct the problem." I don't know why this is displayed. I would prefer to disable the display of this message if possible. My app needs to be able to...
3
2588
by: Dan Sikorsky | last post by:
How can I get the recordset attributes for a table field in SQL Server 2000 to report the field updatable attribute correctly ... mine keeps saying the fields are not updatable? That is, ( oRecordSet ( oItem ).Attributes & 0x4) is always 0 for every field on SQL Server 2000 Example code: var sSQL = 'SELECT TOP 1 * FROM WHERE ' + sUniqueField + '=' + sUniqueValue + ';';
5
1921
by: Alex | last post by:
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked well in Windows 2000 server but not in Windows 2000 Professional. What is different between server and professional. My code is below: Set iMsg = Server.CreateObject("CDO.Message") Set iConf = Server.CreateObject("CDO.Configuration") Set Flds = iConf.Fields Flds("cdoSendUsingMethod") = cdoSendUsingPort Flds("cdoSMTPServer") = "127.0.0.1"...
2
393
by: Dave | last post by:
I have developed a VB.net application that transfers a SOAP wrapped message to another server securely(using SSL and sever/client certificates). When I run this app from a Windows 2000 Professional box everything works as expected, the secure channel is established and the message is sent properly. When I use the exact same app on the Windows 2000 Server(running IIS) box the app does not work properly. I have used a packet sniffer to...
3
2733
by: David | last post by:
I have a problem that I cannot delete components that are placed on a Tabbed page in Visual Basic.Net 2003. (OS = Windows 2000 Professional) The form uses a Tab Control with several pages. I have a Panel on the page and then some combo boxes, labels and text boxes. For some reason, I cannot delete any of these controls from the form (not even the Tab control istelf). The Delete and Cut options in the right click menu have been ghosted...
5
4005
by: Joseph Barbaro | last post by:
I am trying to install DB2 Universal Database Enterprise Server Edition Version 8.1 (for Windows operating systems on 32-bit systems) on Windows 2000 Advanced Server that can be either standalone or part of a network. I am trying to avoid installing Active Directory and setting up the server as a domain controller. 1) Must DB2 UDB Enterprise be installed on a domain controller or can it be installed on W2K Advanced Server set up as a...
1
2387
by: Tobias Zimmergren | last post by:
Hi. I've got the Access Runtime from the Microsoft Office 2000 Developer. I used to run it with Windows NT 4.0 and Office 2000. The operating system Windows NT4.0 is a Swedish version, and so are the Offices. I recently tried to install it on a Windows 2000 Professional (Swedish, with Office 2000, Swedish) installation, but it doesn't work. The error message is somewhat like this:
6
3669
by: DJones | last post by:
I'm using the following code in my .Net application (.Net v1.1, Windows 2000) to write Session Cookies. HttpContext.Current.Response.Cookies("cookieSession")("SessionID") = strSessionID HttpContext.Current.Response.Cookies("cookieSession")("Site_ID") = strSite_ID
0
9797
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10793
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10509
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10219
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7757
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6954
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3081
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.