Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 377809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:43:57+00:00 2026-05-12T14:43:57+00:00

I have a single sign-on solution, meaning that the user will login to one

  • 0

I have a single sign-on solution, meaning that the user will login to one site and be redirected to another. When I redirect the user I want to pass along a key that can be used to verify the user’s authentication status.

Most of the examples of single sign-on I read show the login site passing the encrypted key has a query string value. I don’t think this is a very good solution because it’s not very REST-ful or whatever you want to call it. Instead I’d like to pass the encrypted key in the POST data. So when the user logins in, they are POSTing to another url.

Unfortunately I don’t know (yet) how to do this with the Response.Redirect or Server.Transfer. I think Response.Redirect passes the same POST data along when it redirects.

Does someone know how to redirect a website user in asp.net, changing the POST data while redirecting?

(bonus question: can you change a GET to a POST while redirecting?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:43:57+00:00Added an answer on May 12, 2026 at 2:43 pm

    Server.Transfer has the ability to maintain form data (POST values) in transition, because it is essentially transferring the same request sent by the user to a new endpoint.

    Request.Redirect cannot persist POST data because a redirect is essentially sending a response back to the end-user which says “go here instead”. The client then initiates a new request to that new endpoint. The client does not re-submit the POST data on the second, separate request.

    However, neither POST nor GET alone are more or less RESTful – both are strings of data, just in slightly different parts of the request. Having clean, querystring-less URLs might “look REST-y”, but it is cosmetic.

    Here’s a diagram of how the two different approaches work. As you can see, in the Redirect case, changing the POST data simply isn’t possible because it’s in the client’s hands to form the new request to the target URL; and in the Transfer case, it makes no sense to (even if it was technically possible) because if you do need to pass additional data to the new handler, you can do so yourself:

    alt text http://rexmorgan.net/rr_vs_st.jpg

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay we have a single - sign - on and the user will likely
I am needing help with single sign on. I have siteA.com that requires login
I have implemented Single-Sign-On in my iOS 4.3 app successfully. Now I want to
I have several sites (Asp.Net) that I would like to have a single sign
We have an application that does single sign-on using a centralized authentication server (CAS).
I have a single user java program that I would like to have store
I have 3 application that need single sign on. These are the web config
I have created simple javascript widget where login happens using Facebook Single Sign On.
I have a java web application running on tomcat, and will use single sign
I have a scenario where I want to get the single sign on experience

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.