System.Web.HttpCookie is not defined error

1 posts, 0 answers
  1. Meenu
    Meenu avatar
    8 posts
    Member since:
    Mar 2013

    Posted 25 Mar 2013 Link to this post

    Can anybody help me to solve my following issue?   It is very urgent.


    I have three websites.From the first site I need cookiename for signing out(SingleSignOut).The first two sites are asp.net and the third site is silverlight web application. I pasted below code in second and third sites web.config.

    <authentication mode="Forms">
            <forms name=".ssss" timeout="600"     cookieless="UseCookies" />
          </authentication>

     <machineKey validationKey="2....." decryptionKey="E....." decryption="3..." validation="...." />

    In form load event , I want to check forms cookiename is true or  false... for signing out.Below code is working fine in asp.net project.how can i get formscookiename value in silverligt application?

    Dim C As System.Web.HttpCookie = _
                Request.Cookies(System.Web.Security.FormsAuthentication.FormsCookieName)


    I am using silverlight4 in VS2012 application.How can i write this code in my silverlight web  application. This code is working perfect in normal asp.net site. But this same code is not working in silverlight .

Back to Top