Recent

Author Topic: Tracking Client ID  (Read 1979 times)

Landslyde

  • Full Member
  • ***
  • Posts: 174
  • Jesus is the only way!
Tracking Client ID
« on: June 08, 2018, 08:47:54 pm »
I track clients across web pages using their client ID set in a $_SESSION["variable"]. Is there a similar mechanism in Lazarus to track clients connecting to a remote database?
« Last Edit: June 08, 2018, 09:19:45 pm by Landslyde »
Linux Mint 19.1
Windows 10 Pro
Lazarus 2.0.4


"Let he who is without sin cast the first stone." And with those words, Christ Jesus leveled the field.

Thaddy

  • Hero Member
  • *****
  • Posts: 8488
Re: Tracking Client ID
« Reply #1 on: June 08, 2018, 09:44:11 pm »
Even better, does not need cookies. Store the IP serverside. (Cookies are technically never needed for session maintenance)
Read the manuals and if you are a professional get a proper education in computer science. Makes the forum a lot cleaner.

Landslyde

  • Full Member
  • ***
  • Posts: 174
  • Jesus is the only way!
Re: Tracking Client ID
« Reply #2 on: June 09, 2018, 12:31:03 am »
That works for me.
Linux Mint 19.1
Windows 10 Pro
Lazarus 2.0.4


"Let he who is without sin cast the first stone." And with those words, Christ Jesus leveled the field.

ASerge

  • Hero Member
  • *****
  • Posts: 1359
Re: Tracking Client ID
« Reply #3 on: June 09, 2018, 04:17:28 am »
Even better, does not need cookies. Store the IP serverside. (Cookies are technically never needed for session maintenance)
Client IP?
What about PAT (port address translation, or IP masquerading or NAT overload and many-to-one NAT). Many clients from one IP.

Landslyde

  • Full Member
  • ***
  • Posts: 174
  • Jesus is the only way!
Re: Tracking Client ID
« Reply #4 on: June 09, 2018, 06:31:36 am »
Already got it whooped! :D
Linux Mint 19.1
Windows 10 Pro
Lazarus 2.0.4


"Let he who is without sin cast the first stone." And with those words, Christ Jesus leveled the field.

Thaddy

  • Hero Member
  • *****
  • Posts: 8488
Re: Tracking Client ID
« Reply #5 on: June 09, 2018, 07:45:31 am »
Even better, does not need cookies. Store the IP serverside. (Cookies are technically never needed for session maintenance)
Client IP?
What about PAT (port address translation, or IP masquerading or NAT overload and many-to-one NAT). Many clients from one IP.
It is not a web but a networking scenario as I understand it. Usually you can use the IP as a fingerprint for a session, maybe + pw hash and/or certificate (result) .
The scenario is for authentication, not location as such.
« Last Edit: June 09, 2018, 07:59:34 am by Thaddy »
Read the manuals and if you are a professional get a proper education in computer science. Makes the forum a lot cleaner.

Landslyde

  • Full Member
  • ***
  • Posts: 174
  • Jesus is the only way!
Re: Tracking Client ID
« Reply #6 on: June 09, 2018, 12:53:59 pm »
Exactly. This is all abt tying client_id to the client, making sure they access only their records.

Anyway, I wanted to use several forms for this application. And doing it that way meant I'd have to pass the client_id from form to form for the various queries. But since I can't figure out how to do that, I settled on just using a TPageControl component. I don't like this approach as much. But until I know how to work it out another way, this will work.
Linux Mint 19.1
Windows 10 Pro
Lazarus 2.0.4


"Let he who is without sin cast the first stone." And with those words, Christ Jesus leveled the field.