This is a migrated thread and some comments may be shown as answers.

System.Web.HttpCookie is not defined error

0 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Meenu
Top achievements
Rank 1
Meenu asked on 25 Mar 2013, 12:15 PM

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 .

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Meenu
Top achievements
Rank 1
Share this question
or