Click here to Skip to main content
14,870,621 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have been told to forward a cookie from a web app to an authentication service. I can't see the cookie on the file generated when exporting the browser cookies, so when I asked about it, the client told me this is a session cookie. I have searched for information about how to read session cookies, but I find it confusing.

What I have tried:

As far as I understand, keeps these cookies in the session dictionary (c# How to get session from session cookie) But when I explore the class Session, I can't see any dictionary. Besides that, I understand that to read a cookie, you first have to add it, however this cookie is a corporative cookie that I don't manage. Would it be automatically added to my web app session?

Updated 9-May-19 0:23am
Graeme_Grant 9-May-19 6:22am
You know that Silverlight is dead for a few years right?

Microsoft Silverlight: what happened exactly? Still available?[^]
F-ES Sitecore 13-May-19 6:35am
I don't know how you access cookies in Silverlight, but you can only access cookies that are for the domain your site is running under. So if your site is then you can't read cookies for

By session cookie what he means is a cookie that isn't permanent, so when the webapp is closed (tab or browser is closed) the cookie is gone. That differs from a persistent cookie which is still there even if the browser is closed (think "remember me" functionality). If you are trying to read cookies from the file system then browsers tend to store session cookies in memory, they don't write them to the cookies folder. Only persistent cookies tend to be written to the file system.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900