Re: Can't Write Cookie IE

Tech-Archive recommends: Speed Up your PC by fixing your registry



Are you sure the clients have their browser set to allow cookies?
Some dont.


-- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com


GarrettD78 wrote:
I am having trouble with my authentication cookie with IE. I create and write the cookie here but some of the client PC never get the cookie. This does work with other browsers like Firefox.

           If Request.Cookies("portalroles") Is Nothing Then

                Dim _user As New UsersDB
                Dim roleStr As String = ""
                Dim role As String

                roleStr = _user.GetRoles(User.Identity.Name)


'For Each role In roles

                'roleStr += role
                'roleStr += ";"

                'Next

                Dim ticket As New FormsAuthenticationTicket(1, _
                    Context.User.Identity.Name, _
                    DateTime.Now, _
                    DateTime.Now.AddHours(1), _
                    False, _
                    roleStr)

                Dim cookieStr As String = FormsAuthentication.Encrypt(ticket)


'Send Cookie to client
Response.Cookies("portalroles").Value = cookieStr
Response.Cookies("portalroles").Path = "/"
Response.Cookies("portalroles").Expires = DateTime.Now.AddMinutes(5)


Worst part is this works on most of my clients but not on other.s
Thanks
.



Relevant Pages

  • Re: [NFS] [PATCH 016 of 19] knfsd: match GRANTED_RES replies using cookies
    ... When we send a GRANTED_MSG call, we current copy the NLM cookie ... The X/Open spec explicitly mentions that clients should not expect the ... static inline struct nlm_block * ...
    (Linux-Kernel)
  • Re: To those that love their pets.
    ... some of our clients were able to steel themselves and be there ... in cookie. ... and she was a very lucky pooch. ... absolutely wonderful dogs at the shelters. ...
    (alt.support.diabetes)
  • [PATCH 016 of 19] knfsd: match GRANTED_RES replies using cookies
    ... When we send a GRANTED_MSG call, we current copy the NLM cookie ... The X/Open spec explicitly mentions that clients should not expect the ... static inline struct nlm_block * ...
    (Linux-Kernel)
  • Re: Cant Write Cookie IE
    ... clients including setting their privacy settings to nothing and this stil ... > Are you sure the clients have their browser set to allow cookies? ... >> the cookie here but some of the client PC never get the cookie. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Meaning Of Timeout In FOrms Authentication..????
    ... the cookie is not deleted from the clients machine.... ... >> does Timeout deletes automatically the cookie in the clients browser ... >> Outgoing mail is certified Virus Free. ...
    (microsoft.public.dotnet.framework.aspnet.security)