Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
I have two applications configured in IIS. I need to Pass some values from one application to other using HttpContext object.

I have tried out using

FormsAuthentication.SetAuthCookie("Hello", false)

which sets one value in the Httpcontext object which i m retrieving from other application through

HttpContext.Current.User.Identity.Name property.

Upto this all works fine but i need to pass more user data using Httpcontext object and retrive it in other application.


How can i do that?
Is it possible to pass more user data Using HttpConext Object or not....

Please help me out :(
Posted

1 solution

Actually, what is happening is simply a cookie being set on the client. SetAuthCookie establishes the user authentication cookie, which allows HttpContext.Current.User to be available.

If you want to application #2 to read application #1 data, you could have app#1 set a cookie that app#2 can then read.

 
Share this answer
 


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