Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeps redirecting to login page #482

Closed
tech-thanoshotels opened this issue Oct 31, 2022 · 7 comments
Closed

Keeps redirecting to login page #482

tech-thanoshotels opened this issue Oct 31, 2022 · 7 comments

Comments

@tech-thanoshotels
Copy link

I am using asp.net 4.8 and in the production environment sometime the login does not work. As soon as I recycle the app pool then users can login.

I have updated via nuget to version 4.2.2 and other projects running version 4.2.0 does not seem to have the problem. Any ideas ?

@Tratcher
Copy link
Member

@tech-thanoshotels
Copy link
Author

tech-thanoshotels commented Nov 1, 2022 via email

@Tratcher
Copy link
Member

Tratcher commented Nov 1, 2022

Most of that didn't come through, including the attachment. You'll have to post them directly on github, or send it to the address in my profile.

@tech-thanoshotels
Copy link
Author

tech-thanoshotels commented Nov 1, 2022 via email

@Tratcher
Copy link
Member

Tratcher commented Nov 1, 2022

Your login response is not including any cookies, but it does include the cache headers that would normally be set with the cookies. Try the following workaround:
https://github.com/aspnet/AspNetKatana/wiki/System.Web-response-cookie-integration-issues

@tech-thanoshotels
Copy link
Author

tech-thanoshotels commented Nov 1, 2022 via email

@Tratcher
Copy link
Member

Tratcher commented Nov 1, 2022

That writeup is about Katana and ASP.NET 4.8, not AspNetCore.

The issue can appear randomly because of conflicts with other cookies in the application.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants