0

Is there a way to dispose/close the CookieContainer?

$cc = New-Object System.Net.CookieContainer  
LaPhi
  • 5,675
  • 21
  • 56
  • 78

2 Answers2

4

maybe

remove-variable cc

can do the trick.

edit:

$cc -is [idisposable]

return false!

CB.
  • 58,865
  • 9
  • 159
  • 159
2

You can do something like:

$cc = $null
manojlds
  • 290,304
  • 63
  • 469
  • 417