Visual Basic .NET:
1
2
3
4
5
6
7
8
9
10
11
12
| If User.Login(TextBox1.Text, TextBox2.Text) Then 'set cookie Dim cookie As HttpCookie cookie = New HttpCookie("IntranetCookie") cookie.Item("IntranetLoginName") = "eventesten" If context.Request.Cookies.Item("IntranetCookie") Is Nothing Then Throw New System.Exception("Unable to set cookie") End If HttpContext.Current.Response.Redirect(HttpContext.Current.Request.ApplicationPath) Else Label3.Visible = True End If |
Hij gooit de exception
Visual Basic .NET:
terwijl ik die cookie net gezet heb 1
| Throw New System.Exception("Unable to set cookie") |