Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to use Session without cookie-ip base?
#1
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:

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!
Reply


Messages In This Thread
Is it possible to use Session without cookie-ip base? - by ermesoml - 07-10-2018, 05:59 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)