07-10-2018, 05:59 PM
Hi everyonce,
I have an applications constructed above IdCustomHTTPServer that controls the access with sessions.
But some internet operatitors, mainly mobile (in Brazil), uses at the same request of page many IP's, that ocasion the issue of lose sessions while using the system.
When i search the create session methods of IdCustomHTTPServer i found this:
Its possible to modify in some part of component to the RemoteIP came void or to the component IdCustomHTTPServer dont use the ip based session?
Thanks so much!
I have an applications constructed above IdCustomHTTPServer that controls the access with sessions.
But some internet operatitors, mainly mobile (in Brazil), uses at the same request of page many IP's, that ocasion the issue of lose sessions while using the system.
When i search the create session methods of IdCustomHTTPServer i found this:
Code:
function TIdHTTPDefaultSessionList.CreateUniqueSession(
const RemoteIP: String): TIdHTTPSession;
var
SessionID: String;
begin
SessionID := GetRandomString(15);
while GetSession(SessionID, RemoteIP) <> nil do
begin
SessionID := GetRandomString(15);
end; // while
Result := CreateSession(RemoteIP, SessionID);
end;
Its possible to modify in some part of component to the RemoteIP came void or to the component IdCustomHTTPServer dont use the ip based session?
Thanks so much!