Hello and sorry for my english, I'm italian...
I manage a site with a normal address like: www.mysite.com
I'm using a cookie to store nicks of my users, with a code like this:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2030#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = nick
----
and I'm deleting it, if a user wants so, with:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2003#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = ""
Response.Cookie s("mycookie") = ""
----
(I know, there's too much stuff in the delete procedure!)
Now I'm going to open some new sections of my site, with subdomain
adresses, like search.mysite.c om, shop.mysite.com ... and I need that
cookie authentication for the main (www) address is working also in
these subdomains.
I red on the Internet that with the DOMAIN property, I can set my
cookie to make it work for every subdomain, with something like:
----
Response.cookie s("mycookie").d omain = ".mysite.co m"
----
.... and it works!
My problem is when I try to DELETE it: after I set a cookie with
..domain property, it seems to become "read only": any my attempt to
delete (or modify) it seems to be ignored.
Results are the same when I try to write it from the subdomain that
created it (www), or when I try from the "chief" address (mysite.com,
without any subdomain).
Where's my mistake?
Thanks everybody in advance. 2 10212
flip79 wrote:
Hello and sorry for my english, I'm italian...
I manage a site with a normal address like: www.mysite.com
I'm using a cookie to store nicks of my users, with a code like this:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2030#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = nick
----
and I'm deleting it, if a user wants so, with:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2003#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = ""
Response.Cookie s("mycookie") = ""
----
(I know, there's too much stuff in the delete procedure!)
Now I'm going to open some new sections of my site, with subdomain
adresses, like search.mysite.c om, shop.mysite.com ... and I need that
cookie authentication for the main (www) address is working also in
these subdomains.
I red on the Internet that with the DOMAIN property, I can set my
cookie to make it work for every subdomain, with something like:
----
Response.cookie s("mycookie").d omain = ".mysite.co m"
----
... and it works!
My problem is when I try to DELETE it: after I set a cookie with
.domain property, it seems to become "read only": any my attempt to
delete (or modify) it seems to be ignored.
Results are the same when I try to write it from the subdomain that
created it (www), or when I try from the "chief" address (mysite.com,
without any subdomain).
Where's my mistake?
Thanks everybody in advance.
Can't nobody answer? Please help me, I'm still on this problem :(
"flip79" <fl****@gmail.c omwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hello and sorry for my english, I'm italian...
I manage a site with a normal address like: www.mysite.com
I'm using a cookie to store nicks of my users, with a code like this:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2030#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = nick
----
and I'm deleting it, if a user wants so, with:
----
Response.Cookie s("mycookie").E xpires = #January 1, 2003#
Response.Cookie s("mycookie").P ath = ""
Response.Cookie s("mycookie").S ecure = FALSE
Response.Cookie s("mycookie")(" nick") = ""
Response.Cookie s("mycookie") = ""
----
(I know, there's too much stuff in the delete procedure!)
Now I'm going to open some new sections of my site, with subdomain
adresses, like search.mysite.c om, shop.mysite.com ... and I need that
cookie authentication for the main (www) address is working also in
these subdomains.
I red on the Internet that with the DOMAIN property, I can set my
cookie to make it work for every subdomain, with something like:
----
Response.cookie s("mycookie").d omain = ".mysite.co m"
----
... and it works!
My problem is when I try to DELETE it: after I set a cookie with
.domain property, it seems to become "read only": any my attempt to
delete (or modify) it seems to be ignored.
Results are the same when I try to write it from the subdomain that
created it (www), or when I try from the "chief" address (mysite.com,
without any subdomain).
Where's my mistake?
Exact code you are using to create the cookie and exact code you are using
to delete it would help.
My guess is that you aren't using .domain = ".mysite.co m" when deleting it.
Thanks everybody in advance. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools
Chemistry, mathematics, physical sciences,...
|
by: MiLF |
last post by:
Is it possible to write a Audio CD Player by using python only?
|
by: silviu |
last post by:
Hi All,
I have to write C++ code (server code) that will compile/run on both
Windwos and Linux OS's.
Could someone give me some pointers to info on this matter.
Thanks in advance for your help.
Silviu
|
by: James Marshall |
last post by:
I'm writing a library where I want to override document.write(), but for
all document objects; thus, I want to put it in the prototype. I tried
Document.prototype.write= my_doc_write ;
but it didn't work. I discovered that this seemed to work:
HTMLDocument.prototype.write= my_doc_write ;
Why does HTMLDocument work here but not Document? Will this second
|
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools
Chemistry, mathematics, physical sciences,...
| |
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be assigned to a variable and output
using document.write.
(Note, there is no submit button or other form elements. Basically
|
by: Jeff Rodriguez |
last post by:
Here's what I want do:
Have a main daemon which starts up several threads in a Boss-Queue structure.
From those threads, I want them all to sit and watch a queue. Once an entry
goes into the queue, grab it and run a system command.
Now I want to make sure that system command doesn't hang forever, so I need some
way to kill the command and have the worker thread go back to work waiting for
another queue entry.
|
by: '69 Camaro |
last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to
examples of the syntax necessary to read the HTML on another Web page when
that HTML is produced from JavaScript using the document.write( ) method?
For a simplified example, I have two Web pages. Page 1 uses JavaScript with
the following:
htmlData = "<B>This is bold text.</B>";
document.write(htmlData);
|
by: _mario.lat |
last post by:
hallo,
I use PHP and I'd like to not write in hardcoded way password
and login to access to mysql.
how to not write password in code for access to mysql?
How can I do?
I'd like that who see my code don't see my paswords.
there is a solution?
Thank you in advance.
Mario.
|
by: ampo |
last post by:
Hello.
Can anyone help with cross-domain problem?
I have HTML page from server1 that send xmlHTTPRequest to server2.
How can I do it?
Thanks.
|
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...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |