Re: checking whether browser allows cookies in asp.net

From: Saber (saber[--AT--]maghalat.com)
Date: 07/24/04

  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Authentication against active directory"
    Date: Sun, 25 Jul 2004 02:03:40 +0430
    
    

    Sub Page_Load()
       If Not Page.IsPostBack Then
          If Request.QueryString("AcceptsCookies") Is Nothing Then
               Response.Cookies("TestCookie").Value = "ok"
               Response.Cookies("TestCookie").Expires = _
                  DateTime.Now.AddMinutes(1)
               Response.Redirect("TestForCookies.aspx?redirect=" & _
                  Server.UrlEncode(Request.Url.ToString))
          Else
               labelAcceptsCookies.Text = "Accept cookies = " & _
                  Request.QueryString("AcceptsCookies")
          End If
       End If
    End Sub

    SOURCE: MSDN
    © Microsoft Corporation. All rights reserved.

    "Ollie" <ollie_riches@hotmail.com> wrote in message
    news:ecCfaEZcEHA.3824@TK2MSFTNGP10.phx.gbl...
    > Can you check whether a users browser allows you to use cookies?
    >
    > Cheers
    >
    > Ollie
    >
    >


  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Authentication against active directory"

    Relevant Pages

    • Re: checking whether browser allows cookies in asp.net
      ... Sub Page_Load ... SOURCE: MSDN ... © Microsoft Corporation. ... > Can you check whether a users browser allows you to use cookies? ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: How to HANDLE an Access Violation error
      ... > The MSDN states that the error mode is for a process and its child ... Does this mean that unhandled exceptions within called DLL's ... >> Exit Sub ... >> Public Function UnhandledExceptionFilter(ExceptionInfo As ...
      (microsoft.public.vb.winapi)
    • Re: Did I press the Left or Right button?
      ... in the MSDN. ... Different bits are set in the return value depending on ... > Dim RtnEnt As AcadEntity ... > Exit Sub ...
      (microsoft.public.vb.winapi)
    • protecting a class declarativly (going mad)
      ... according to msdn (link at bottom) i should be able to ... protect a whole class declaratively as above. ... Private Sub Form1_Load(ByVal sender As System.Object, ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Help me! How I could make user in active directory
      ... communicating with Active Directory. ... And check the index on the left in MSDN. ... >> End Sub ...
      (microsoft.public.dotnet.framework.aspnet.security)