[英]Maintain variables in Post when redirected to login page from FormsAuthentication
Here is our scenario: 这是我们的场景:
Question: 题:
How do we preserve the posted values from web site #1 during the authentication/login process in web site #2. 我们如何在网站#2中的身份验证/登录过程中保留网站#1中发布的值。
Things we have tried: 我们尝试过的事情:
We need to use POST rather than GET because the length of the data is too long to put in the querystring. 我们需要使用POST而不是GET,因为数据的长度太长而无法放入查询字符串。 Same reason why we cannot preserve the values in a cookie.
我们无法保留cookie中的值的原因相同。
Can you keep track of anything (some kind of arbitrary session identifier, like a guid) throughout the steps? 你可以在整个步骤中跟踪任何事物(某种任意会话标识符,如guid)吗? I would consider storing the credentials gathered in a database until step 3 is reached, and then destroying the record when the login takes place.
我会考虑存储在数据库中收集的凭据,直到达到步骤3,然后在登录时销毁记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.