* * *

Author Topic: Tracking Client ID  (Read 1279 times)

Landslyde

  • Full Member
  • ***
  • Posts: 163
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
Lazarus 1.8.4
FPC 3.0.4

Thaddy

  • Hero Member
  • *****
  • Posts: 6737
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)
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

Landslyde

  • Full Member
  • ***
  • Posts: 163
Re: Tracking Client ID
« Reply #2 on: June 09, 2018, 12:31:03 am »
That works for me.
Linux Mint 19
Lazarus 1.8.4
FPC 3.0.4

ASerge

  • Hero Member
  • *****
  • Posts: 903
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: 163
Re: Tracking Client ID
« Reply #4 on: June 09, 2018, 06:31:36 am »
Already got it whooped! :D
Linux Mint 19
Lazarus 1.8.4
FPC 3.0.4

Thaddy

  • Hero Member
  • *****
  • Posts: 6737
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 »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

Landslyde

  • Full Member
  • ***
  • Posts: 163
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
Lazarus 1.8.4
FPC 3.0.4

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus