Hi,
I am trying to implement OAuth in my application.
On login page, I am setting a session varible with some string value.
Session["CompanyInfo"] = "Your Company Name";
I then redirect to the ADFS login page where I enter correct user name and password.
After successful authentication, it redirects me to another page in my application where I am trying to access the session variable I stored earlier.
But here, I am getting session value null.
string comapny = Convert.ToString(Session["CompanyInfo"]);
Any suggestions on this appreciated.
Thanks.
What I have tried:
I tried passing querystring parameter while redirecting to ADFS. Then after ADFS login, back on another page in application, tried to get that value using UrlReferer.
This worked on my local machine but not on production.
UrlReferer was blank on production server.