I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id");
myCookie.Expire s = DateTime.Now.Ad dDays(-1d);
Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself,
But fail to clear when the cookie is form another application, like php.
How can I do? 9 2058
I had a similar problem once. I just changed the cookie name in my
web.config file to avoid any conflicts. That worked.
ad wrote: I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id"); myCookie.Expire s = DateTime.Now.Ad dDays(-1d); Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php.
How can I do?
ad wrote: I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id"); myCookie.Expire s = DateTime.Now.Ad dDays(-1d); Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php. How can I do?
Make sure you use the same Domain and Path as the cookie you want to clear.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
I have double checkd the Domain and Path,
The domains of both are all null, and the Paths are all "/"
"Dave Anderson" <GT**********@s pammotel.com> ¼¶¼g©ó¶l¥ó·s»D: uI************* *@TK2MSFTNGP15. phx.gbl... ad wrote: I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id"); myCookie.Expire s = DateTime.Now.Ad dDays(-1d); Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php. How can I do?
Make sure you use the same Domain and Path as the cookie you want to clear. -- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting.
Thanks,
How to change the cookie name in web.config?
"Joey" <jo*********@to pscene.com>
???????:11***** *************** **@o13g2000cwo. googlegroups.co m... I had a similar problem once. I just changed the cookie name in my web.config file to avoid any conflicts. That worked.
ad wrote: I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id"); myCookie.Expire s = DateTime.Now.Ad dDays(-1d); Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php.
How can I do?
ad wrote: I have double checkd the Domain and Path, The domains of both are all null, and the Paths are all "/"
I find there is nothing like these two extensions for debugging this kind of
thing: http://livehttpheaders.mozdev.org/ http://chrispederick.com/work/webdeveloper/
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Dose you mean the forms name in authentication section?
I have chane it , but still can't work
<authenticati on mode="Forms">
<forms name="xxxxxxx" loginUrl="Login .aspx" protection="Val idation"
timeout="99999" defaultUrl="Hom e.aspx">
"ad" <fl****@wfes.tc c.edu.tw> ¼¶¼g©ó¶l¥ó·s»D: %2************* **@TK2MSFTNGP15 .phx.gbl... Thanks, How to change the cookie name in web.config?
"Joey" <jo*********@to pscene.com> ???????:11***** *************** **@o13g2000cwo. googlegroups.co m...I had a similar problem once. I just changed the cookie name in my web.config file to avoid any conflicts. That worked.
ad wrote: I use the codes below to clear the cookie["us_id"]:
HttpCookie myCookie = new HttpCookie("us_ id"); myCookie.Expire s = DateTime.Now.Ad dDays(-1d); Response.Cookie s.Add(myCookie) ;
It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php.
How can I do?
Can they be used in IE?
"Dave Anderson" <GT**********@s pammotel.com> ¼¶¼g©ó¶l¥ó·s»D: uV************* ***@TK2MSFTNGP1 0.phx.gbl... ad wrote: I have double checkd the Domain and Path, The domains of both are all null, and the Paths are all "/"
I find there is nothing like these two extensions for debugging this kind of thing: http://livehttpheaders.mozdev.org/ http://chrispederick.com/work/webdeveloper/ -- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting.
ad wrote: I find there is nothing like these two extensions for debugging this kind of thing: http://livehttpheaders.mozdev.org/ http://chrispederick.com/work/webdeveloper/ Can they be used in IE?
Not to my knowledge. But a Gecko browser should be part of your debugging
toolbox anyway, if only for testing compatibility.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Thanks.
What is Gecko browser ?
"Dave Anderson" <GT**********@s pammotel.com> ¼¶¼g©ó¶l¥ó·s»D: u0************* *@TK2MSFTNGP10. phx.gbl... ad wrote: I find there is nothing like these two extensions for debugging this kind of thing: http://livehttpheaders.mozdev.org/ http://chrispederick.com/work/webdeveloper/ Can they be used in IE?
Not to my knowledge. But a Gecko browser should be part of your debugging toolbox anyway, if only for testing compatibility.
-- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rafael T. Ugolini |
last post by:
Im trying to add more than one cookie with urllib2 but im not getting
much sucess.
An example...
>>> req =
urllib2.Request('http://localhost','j_username=psyca&j_password=******',{...
|
by: Shannon Jacobs |
last post by:
I'm doing some trivial surveys, and I want to know if the same user
answers twice. Can't really know that, but at least I thought I could
check for the same browser/computer combination by using a cookie.
Here is the code I have now. In the header, I have the following:
<SCRIPT language="JavaScript">
var cookieStatus;
if (document.cookie.length > 0) {
cookieStatus = 'Cookie exists with value ' + document.cookie;
} else {
|
by: Ziggy |
last post by:
The purpose of my application is to require a website visitor to complete
a form before participating in a search application. I have a specific
reason for doing this with client-side javascript, but I'm not going to
go into the explanation of "why."
Ideally, the visitor goes to http://www.hopelandinc.com/golf-homes.html.
If they haven't registered in 90 days, they'll be redirected to a
registration form. Once they complete the reg form,...
|
by: odonel |
last post by:
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.
Source Error:
here is my code:
HttpCookie cookie = Request.Cookies;
|
by: Karsten Grombach |
last post by:
Hi,
I'm trying the following:
- Imitate a Logon using a Post with HttpWebRequest on remote Webserver (asp
3.0 page using https)
- On success redirect to the page (encapsuled in an iframe) supplied by the
remote Webserver
I can successfuly logon but when I redirect to the supplied url, the
webserver does not know me anymore an redirects me back to login page.. I
| |
by: Rakesh Roberts |
last post by:
I think I have a very interesting cookie problem.
I use form authentications on my application. Through out my
application I started using a toggle control that persists its value
for the session using cookies that it writes to on the client side
(using javascript). What happens sometimes it that the application
forces the user back to the authentication page ( the login page). I
suspect this has something to do with the limit on the...
|
by: Oleg Leikin |
last post by:
Hi,
(newbie question)
I've created some simple .NET ASP application that should store cookies at the client machine.
According to the documentation cookie expiration time is set via HttpCookie.Expires property, but property value is the time of day on the client.
How can I possibly know client local time ?
|
by: HIK |
last post by:
I have an ASP.NET application on a Win2k3 server. The user is directed
to form B (with a query string that contains the logon information).
Form B refers to Form A which validates the user according to the query
string. If valid it writes an authentication ticket and the application
returns to form B.
When I browse to the application from its web server, everything works
as expected. The trace showe that Form B is called, then Form A...
|
by: Jerim79 |
last post by:
I did try to find the answer to this before posting, so this isn't a
knee jerk reaction.
What I am trying to accomplish is to have a script that opens a
cookie, reads a value, and then use a switch/case to take action based
on that value in the cookie. I want to set the cookie manually, so I
don't need setcookie(). I see that in PHP it stores the cookie in
memory. Is there a way to have PHP just read a cookie from the desktop
machine?...
|
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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |