Setting up the Session Cookie on User's Browser

I am trying to figure out the solution to create a cookie on the user’s browser using Session Token received by calling the Authentication API from my .Net MVC application.

I m trying to use this method for setting up the cookie in User’s browser.
" Retrieving a session cookie via OpenID Connect Authorization Endpoint"

The request syntax is:

Can someone please advise or share a sample code which does this ?
My application is MVC .Net application.

I would like to achieve 2 things.

  1. Set the cookie in the User’s browser for SSO purpose
  2. Validate the login Session on all the pages of the application until User is logged in.

Thank you in advance for your time.

We can help you!
Please visit

Hi @jaynishp

You can also check

Hi @eddienguyen123,
This link is not working. Can you please check?


Hi @dragos,
Thank you for sharing this. We will look into this and will get back to you if any questions.

Hi @jaynishp, please try again, our site is now available! Thank you so much!