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

Add a new property "IgnoreSessionRemoteIP" for HTTP-Server #579

Open
asschilling40 opened this issue Jan 15, 2025 · 1 comment
Open

Add a new property "IgnoreSessionRemoteIP" for HTTP-Server #579

asschilling40 opened this issue Jan 15, 2025 · 1 comment
Labels
Element: HTTP Issues related to HTTP handling, TIdHTTP, TIdHTTPServer, TIdHTTPProxyServer, etc Status: Reported Issue has been reported for review Type: Enhancement Issue is proposing a new feature/enhancement

Comments

@asschilling40
Copy link

Problem: Entra/Azure Proxy Application and Session Handling

My Indy HTTP server is published through an Entra/Azure Application Proxy service.
This proxy-service is connected via three local Application Proxy Connector servers to the local network
and the internal web application.

The issue arises because the proxy service changes the proxy connector server with each access,
causing the Indy server to create a new session on every request due to the changing client IP
(remote IP). As a result, all session data is discarded.

Solution: To resolve this, session handling should be based solely on the session ID, rather than the client IP.

@asschilling40 asschilling40 added Status: Reported Issue has been reported for review Type: Enhancement Issue is proposing a new feature/enhancement labels Jan 15, 2025
@rlebeau
Copy link
Member

rlebeau commented Jan 17, 2025

You can use the TIdHTTPServer.OnCreateSession event, or derive a new class from TIdHTTPCustomSessionList, to create new sessions that ignore client IPs. The client IP is used by default only if you don't create your own session first.

@rlebeau rlebeau added the Element: HTTP Issues related to HTTP handling, TIdHTTP, TIdHTTPServer, TIdHTTPProxyServer, etc label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Element: HTTP Issues related to HTTP handling, TIdHTTP, TIdHTTPServer, TIdHTTPProxyServer, etc Status: Reported Issue has been reported for review Type: Enhancement Issue is proposing a new feature/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants