Click here to Skip to main content
16,014,838 members
Home / Discussions / C#
   

C#

 
GeneralRe: ConectionStringIII Pin
Neil Van Note23-Apr-02 19:20
Neil Van Note23-Apr-02 19:20 
GeneralSystem.Net.dll does not exist! Pin
23-Apr-02 3:58
suss23-Apr-02 3:58 
GeneralRe: System.Net.dll does not exist! Pin
Gavin_Mannion23-Apr-02 4:10
Gavin_Mannion23-Apr-02 4:10 
GeneralRe: System.Net.dll does not exist! Pin
James T. Johnson23-Apr-02 4:19
James T. Johnson23-Apr-02 4:19 
GeneralRe: System.Net.dll does not exist! Pin
23-Apr-02 4:38
suss23-Apr-02 4:38 
GeneralRe: System.Net.dll does not exist! Pin
James T. Johnson23-Apr-02 5:15
James T. Johnson23-Apr-02 5:15 
GeneralRe: System.Net.dll does not exist! Pin
Kannan Kalyanaraman24-Apr-02 2:57
Kannan Kalyanaraman24-Apr-02 2:57 
General!!!Cookies!!! Pin
Gavin_Mannion23-Apr-02 2:49
Gavin_Mannion23-Apr-02 2:49 
Hi All,

I thought I had finally figured out cookies and have now run into another problem.

I have 2 pages which both add data to a cookie as follows
**********Page 1**********
HttpContext.Current.Response.Cookies["MyCookie"]["Session"]= Session.SessionID;
HttpContext.Current.Response.Cookies["MyCookie"]["MyName"] = "Gavin";
HttpContext.Current.Response.Cookies["MyCookie"]["MyDrink"] = "Beer";
**********Page 2**********
HttpContext.Current.Response.Cookies["MyCookie"]["MyFood"]= "Pizza";
HttpContext.Current.Response.Cookies["MyCookie"]["MyTeam"] = "Liverpool";
**************************

After Page 1 as I enter Page 2 my 3 Cookie Keys (Session, MyName & MyDrink) are all fine, but as I try and add the 2 new Keys my cookie loses the first 3?

I hope everyone understood that one Smile | :)

Can someone explain why this is and how do I stop it.
I am looking at saving about 100 different things in this cookie so I don't really want to rewrite all the keys on every page.

Thanks,
Gavin
GeneralRe: !!!Cookies!!! Pin
James T. Johnson23-Apr-02 5:09
James T. Johnson23-Apr-02 5:09 
GeneralRe: !!!Cookies!!! Pin
Gavin_Mannion23-Apr-02 5:19
Gavin_Mannion23-Apr-02 5:19 
GeneralRe: !!!Cookies!!! Pin
James T. Johnson23-Apr-02 8:36
James T. Johnson23-Apr-02 8:36 
GeneralCenter Child Window in SDI Pin
Benjamin Chua22-Apr-02 15:34
Benjamin Chua22-Apr-02 15:34 
GeneralRe: Center Child Window in SDI Pin
James T. Johnson23-Apr-02 2:59
James T. Johnson23-Apr-02 2:59 
QuestionC# colour picker ??? Pin
Christian Graus22-Apr-02 12:34
protectorChristian Graus22-Apr-02 12:34 
AnswerRe: C# colour picker ??? Pin
Neil Van Note22-Apr-02 12:48
Neil Van Note22-Apr-02 12:48 
GeneralArrayList modify Items Pin
Ignacio Varas22-Apr-02 5:01
Ignacio Varas22-Apr-02 5:01 
GeneralRe: ArrayList modify Items Pin
Neil Van Note22-Apr-02 6:46
Neil Van Note22-Apr-02 6:46 
GeneralProperty vs Attribute Pin
Chris Hafey22-Apr-02 5:00
Chris Hafey22-Apr-02 5:00 
GeneralRe: Property vs Attribute Pin
Nish Nishant22-Apr-02 8:24
sitebuilderNish Nishant22-Apr-02 8:24 
GeneralRe: Property vs Attribute Pin
James T. Johnson22-Apr-02 21:38
James T. Johnson22-Apr-02 21:38 
GeneralRe: Property vs Attribute Pin
Neil Van Note23-Apr-02 2:42
Neil Van Note23-Apr-02 2:42 
GeneralChecking to see if a cookie exists Pin
Gavin_Mannion22-Apr-02 4:44
Gavin_Mannion22-Apr-02 4:44 
GeneralRe: Checking to see if a cookie exists Pin
James T. Johnson23-Apr-02 3:43
James T. Johnson23-Apr-02 3:43 
GeneralRe: Checking to see if a cookie exists Pin
Gavin_Mannion23-Apr-02 3:45
Gavin_Mannion23-Apr-02 3:45 
GeneralRe: Checking to see if a cookie exists Pin
James T. Johnson23-Apr-02 3:53
James T. Johnson23-Apr-02 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.