473,805 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cookies just vanishing/dropping/resetting - help!

I've posted on this months ago, and unfortunately for me my problem
has come back!

Very basically, I am setting a cookie on a given page, a process runs,
and then I am doing a response.redire ct to the second page which then
references that cookie.

I have got this working perfectly fine, and all of a sudden when I
publish to my live server I am getting a null reference exception
because the cookie has dropped out of existence.

Two strange things:

1) I am doing this with other cookies on the same and other pages -
and it works fine
2) This previously has been working without an issue!

I 'resolved' the issue the last time by removing non-alphabetical
characters from my code i.e. full stops and underscores.

I am largely using the format Response.Cookie s["x"].Value =
"something" - but have also tried this long hand:

HttpCookie ckItem = new HttpCookie("MyC ookie");
ckItem.Value = iSearchCriteria .ToString();
ckItem.Expires = DateTime.Now.Ad dMinutes(999);
Response.Cookie s.Add(ckItem);

Still - no joy - could it be because I am using Response.Redire ct?

Many thanks - I would really appreciate any help on this one as it is
going to end up getting me the sack I think lol.

Regards

Darren

Mar 15 '07 #1
0 1065

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

Similar topics

6
3910
by: Nicolae Fieraru | last post by:
Hi All, I recently discovered that my session cookies on the web host disappear within 30 seconds. I created some very simple asp scripts (it took me a while until I discovered why my shopping cart acts very weird...) to check the session cookies. On one asp page I set up cookies:
2
1319
by: Greg | last post by:
There is a repeating issue of controls vanishing from a form in the Dev environment which is starting to get annoying. What happens is that I will have a form open in the IDE. The form will have a variety of buttons on it. The form will be saved, then compiled and run. After it runs, one or more buttons have either vanished completely, or moved to a position of 0,0. If the control vanishes completely, it may still show up when...
5
2813
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We have been looking our asses off but can not find a working solution. the code we came up with is ...
2
1697
by: nulldevice | last post by:
I've got a datagrid with some nested controls, created at design-time. The controls themselves have no databound values. After a few other operations on the page (selecting a few parameters, etc), a button is clicked and the databind occurs. This part works fine. It retreives the 4-10 rows it needs and using the itemdatabound formats everything nicely. What I intend to do then, is after the user has gone through the nested controls...
2
1294
by: Linda | last post by:
Greetings, I am experiencing a problem similar to that mentioned in <a href="http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/a4ca8746b3de09c2/3a24082f15010830?q=controls+vanishing&rnum=1#3a24082f15010830">this post</a>, which is too old for me to respond to. Does anyone have any additional information? I am using VB.Net 2003. The Solution has two projects: one is a library project, which...
3
1834
by: Phillip N Rounds | last post by:
I'm having trouble with using cookies to monitor the stages of login. I have a two stage Registration page ( register.aspx ) and my target page ( MyPage.aspx ) I'm using a cookie named LoginStatus to tract the stage of the login process. LoginStatus = "1" denotes that the first part of the login process has been performed. LoginStatus = "2" denotes that the login process has been completed.
3
1303
by: Darren.Ratcliffe | last post by:
Hi everyone I'm using v 2.0 of the framework with C# and am developing a web application. I am finding that my cookie names are duplicating themselves over and over again, for example when I write out all the cookie keys and values, I am getting the following: CookieA: Apple
7
10212
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 Settings\Administrator\Cookies but not anymore
36
2503
by: TC | last post by:
I've used Access for many years. Several times, I've encountered a bug which I refer to as the "Vanishing Joins" bug. When it happens, joins vanish randomly from queries. More specifically, all joins vanish from at least one (seemingly random) query. I've always regarded the Vanishing Joins bug as a symptom of corruption. When it happens, I usually give my users advice on how to recover from corruption, and how to avoid it in the future....
0
9596
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,...
1
10368
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9186
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
7649
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
6876
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
5544
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...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
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
3
3008
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.