Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to use Session without cookie-ip base?
#2
(07-10-2018, 05:59 PM)ermesoml Wrote: When i search the create session methods of IdCustomHTTPServer i found this:

Code:
function TIdHTTPDefaultSessionList.CreateUniqueSession(
 const RemoteIP: String): TIdHTTPSession;

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?

The TIdHTTPDefaultSessionList.CreateUniqueSession() method gets called only when:

1. The TIdHTTPServer.SessionList property is not assigned a custom list class.

2. you do not return a TIdHTTPSession object from the TIdHTTPServer.OnCreateSession event.

3. the TIdHTTPServer.AutoStartSession property is true (it is false by default), or your OnCommand... handlers call the TIdHTTPServer.CreateSession() method directly.

You can create new sessions however you want if you use the OnCreateSession event. Or track sessions however you want if you derive a custom class from TIdHTTPCustomSessionList and then assign it to the TIdHTTPServer.SessionList property.

Reply


Messages In This Thread
RE: Is it possible to use Session without cookie-ip base? - by rlebeau - 07-10-2018, 08:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)