473,394 Members | 1,854 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,394 software developers and data experts.

disappearing cookie

m
I have a strange and frustrating problem. page1.aspx asks for a login
and goes to itself to validate the login. if it succeeds it creates a
cookie for the login and goes to my creditcard form, where the cookie
always works, though i don't actually use it. when the user submits the
form it goes to another site to verify the creditcard info, which then
redirects to page3.aspx. the problem is that for some machines the
cookie no longer exists, but for me it works perfectly. i tried
changing from a session to a persistant cookie but that made no
difference. all 3 pages are in the same subdir. i tried using a
session variable instead but that doesn't work either, presumably
because the aspsession cookie is gone as well. is this some privacy
setting issue?
Nov 19 '05 #1
4 1315

Hmz strange indd. Does the redirect to page 3 happen with http or httpS?

Let me know if you have any more questions..

Cheers,
Tom Pester
I have a strange and frustrating problem. page1.aspx asks for a login
and goes to itself to validate the login. if it succeeds it creates a
cookie for the login and goes to my creditcard form, where the cookie
always works, though i don't actually use it. when the user submits
the form it goes to another site to verify the creditcard info, which
then redirects to page3.aspx. the problem is that for some machines
the cookie no longer exists, but for me it works perfectly. i tried
changing from a session to a persistant cookie but that made no
difference. all 3 pages are in the same subdir. i tried using a
session variable instead but that doesn't work either, presumably
because the aspsession cookie is gone as well. is this some privacy
setting issue?

Nov 19 '05 #2
m
The creditcard info is submitted via https, but the return to page 3 is
http. I thought that might be an issue.
Nov 19 '05 #3
you can try the following :

- set the domain of the cookie to the domanname without a host
Response.Cookies("UID").Domain = ".myserver.com"
This function is used to share cookies between hostA.myserver.com and hostB.myserver.com.

With any luck the specs allow now also cookies to be sent between the http
and the httpS server.
I never tried this before so tell me how it goes.

- You can try this technique : Sharing Cookies Across Domains
http://www.15seconds.com/issue/971108.htm

Sounds like a bit of work..

Cheers,
Tom Pester
The creditcard info is submitted via https, but the return to page 3
is http. I thought that might be an issue.

Nov 19 '05 #4
I found this good discussion about the issue :

http://www.experts-exchange.com/Web/..._21336348.html

Cheers,
Tom Pester
Hmz strange indd. Does the redirect to page 3 happen with http or
httpS?

Let me know if you have any more questions..

Cheers,
Tom Pester
I have a strange and frustrating problem. page1.aspx asks for a
login and goes to itself to validate the login. if it succeeds it
creates a cookie for the login and goes to my creditcard form, where
the cookie always works, though i don't actually use it. when the
user submits the form it goes to another site to verify the
creditcard info, which then redirects to page3.aspx. the problem is
that for some machines the cookie no longer exists, but for me it
works perfectly. i tried changing from a session to a persistant
cookie but that made no difference. all 3 pages are in the same
subdir. i tried using a session variable instead but that doesn't
work either, presumably because the aspsession cookie is gone as
well. is this some privacy setting issue?

Nov 19 '05 #5

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

Similar topics

1
by: richard | last post by:
My website uses cookies to persist a certain amount of data on the client. However, occasionally the cookies will disappear or be set to an empty string for no discernable reason. It does not...
2
by: dave | last post by:
I have 2 pages... in the first page i check to see for the existance of the cookie, if found do something else set the value and set the cookie. (cookie gets set ok) I use the following code to...
19
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you...
2
by: Raterus | last post by:
Howdy, I have one IIS Application, with asp/asp.net pages. I set a cookie like so in an ASP page. Response.Cookies("AuthCookie")("hash") = md5(username & Application("HashCode"))...
0
by: Mach Runner | last post by:
I am implementing a secure website using the ASP.NET FormsAuthentication model. I have taken the simplest code examples from MSDN (login.aspx,default.aspx, web.config) but cannot get proper...
2
by: | last post by:
While I was learning about baking cookies in ASP.NET, I also ran across this interesting article that outlined a few bombs to watch out for when using cookies in ASP.NET: ...
15
by: Mark Rae | last post by:
Hi, I'm presently converting a v1.1 ASP.NET app to v2, and am encountering a strange problem. When running in Debug mode (i.e. hitting F5), all is well. However, when running without...
3
by: insomniac | last post by:
Hello, I'm not a newbie to cookies, however I am stumpped by a receent issue that has come up. I am running my web application through a frame that belongs to another company. This application...
1
by: =?Utf-8?B?RGF2ZXkgUA==?= | last post by:
I have a classic ASP page which links through to an ASP.NET 1.1 page. Basically there is a hyperlink on the classic ASP page that opens the ASP.NET page in the same window. I can then go back to my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.