Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 21.27.01 jaxsin · ~jaxsin@cpe-74-67-77-162.stny.res.rr.com JOIN #C#
- 21.28.26
- 21.28.26 jaxsin · alright I have a question, learning c sharp so take it easy on me
- 21.30.30 PunkinPie · k
- 21.30.31 jaxsin · I am using a cookiecontainer to keep track of session cookies, but I most certainly want to try and save these, what is the best method to do it? I see there is no way to get the all the cookies from a cookiecontainer, so I am assuming the only way to save them is to save the cookie from the httpwebresponse everytime I get a response, compare this to the file I have an either update an existing
- 21.30.31 jaxsin · cookie or add a new one
- 21.30.44 jaxsin · but I have to think that is somewhat very complicated
- 21.30.56 PunkinPie · why wouldn't you use the session variable?
- 21.31.14 jaxsin · dumb question here, but what is that?
- 21.31.23 PunkinPie · HttpContext.Current.Session
- 21.31.39 PunkinPie · Session("user's name") = "bob"
- 21.31.46 PunkinPie · ASP will do all the cookie work for you
- 21.31.55 PunkinPie · just set that and read it like Session("user's name")
- 21.32.14 jaxsin · I am not using asp
- 21.32.41 jaxsin · windows app that is just logging into a server and downloading some info from a database
- 21.32.56 PunkinPie · oh
- 21.33.00 PunkinPie · then in that case...
- 21.33.10 PunkinPie · use a hashtale.
- 21.33.12 PunkinPie · table.
- 21.33.20 PunkinPie · however.
- 21.33.30 PunkinPie · you have to be careful not to store more than 5 cookies at once.
- 21.33.36 PunkinPie · no matter what method you use.
- 21.34.06 jaxsin · whats with the 5 limit rule?
- 21.34.25 PunkinPie · here ill show you
- 21.34.57 jaxsin · I am really sorry if I sound stupid, but when I say I am new I am very new.
- 21.35.12 · PunkinPie gives you 1 cookie
- 21.35.16 · PunkinPie gives you 2 cookies
- 21.35.18 · PunkinPie gives you 3 cookies
- 21.35.21 · PunkinPie gives you 4 cookies
- 21.35.26 · PunkinPie gives you 5 cookies
- 21.35.27
- 21.35.27 CookieMonstr · ~CookieMon@95.154.254.162 JOIN #C#
- 21.35.30
- 21.35.30 CookieMonstr · COOOOKIEEEEEEEEEEEEEEEEEEE
- 21.35.31 CookieMonstr · !!!!!
- 21.35.35 · CookieMonstr eats all the COOKIES
- 21.35.37 CookieMonstr · nom nom nom nom nom
- 21.35.40 · CookieMonstr burps
- 21.35.41 CookieMonstr · ~CookieMon@95.154.254.162 PART #C# (Left all channels)
- 21.35.50 PunkinPie · that happens.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement