Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. 21.27.01           jaxsin · ~jaxsin@cpe-74-67-77-162.stny.res.rr.com JOIN #C#
  2. 21.28.26  
  3. 21.28.26           jaxsin · alright I have a question, learning c sharp so take it easy on me
  4. 21.30.30        PunkinPie · k
  5. 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
  6. 21.30.31           jaxsin · cookie or add a new one
  7. 21.30.44           jaxsin · but I have to think that is somewhat very complicated
  8. 21.30.56        PunkinPie · why wouldn't you use the session variable?
  9. 21.31.14           jaxsin · dumb question here, but what is that?
  10. 21.31.23        PunkinPie · HttpContext.Current.Session
  11. 21.31.39        PunkinPie · Session("user's name") = "bob"
  12. 21.31.46        PunkinPie · ASP will do all the cookie work for you
  13. 21.31.55        PunkinPie · just set that and read it like Session("user's name")
  14. 21.32.14           jaxsin · I am not using asp
  15. 21.32.41           jaxsin · windows app that is just logging into a server and downloading some info from a database
  16. 21.32.56        PunkinPie · oh
  17. 21.33.00        PunkinPie · then in that case...
  18. 21.33.10        PunkinPie · use a hashtale.
  19. 21.33.12        PunkinPie · table.
  20. 21.33.20        PunkinPie · however.
  21. 21.33.30        PunkinPie · you have to be careful not to store more than 5 cookies at once.
  22. 21.33.36        PunkinPie · no matter what method you use.
  23. 21.34.06           jaxsin · whats with the 5 limit rule?
  24. 21.34.25        PunkinPie · here ill show you
  25. 21.34.57           jaxsin · I am really sorry if I sound stupid, but when I say I am new I am very new.
  26. 21.35.12                  · PunkinPie gives you 1 cookie
  27. 21.35.16                  · PunkinPie gives you 2 cookies
  28. 21.35.18                  · PunkinPie gives you 3 cookies
  29. 21.35.21                  · PunkinPie gives you 4 cookies
  30. 21.35.26                  · PunkinPie gives you 5 cookies
  31. 21.35.27  
  32. 21.35.27     CookieMonstr · ~CookieMon@95.154.254.162 JOIN #C#
  33. 21.35.30  
  34. 21.35.30     CookieMonstr · COOOOKIEEEEEEEEEEEEEEEEEEE
  35. 21.35.31     CookieMonstr · !!!!!
  36. 21.35.35                  · CookieMonstr eats all the COOKIES
  37. 21.35.37     CookieMonstr · nom nom nom nom nom
  38. 21.35.40                  · CookieMonstr burps
  39. 21.35.41     CookieMonstr · ~CookieMon@95.154.254.162 PART #C# (Left all channels)
  40. 21.35.50        PunkinPie · that happens.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement