Recent

Author Topic: synapse ans web sessions  (Read 2585 times)

cpalx

  • Hero Member
  • *****
  • Posts: 753
synapse ans web sessions
« on: July 02, 2018, 05:55:34 pm »
Hello,

Is it posible work with synapse and web sessions?

i have a cgi that works with sessions. can i make desktop applications and works (synapse) with the cgi?

Lazarus: 1.8.4
Server: Linux x64
Desktop: Windows 10, Ubuntu 18.04

sash

  • Sr. Member
  • ****
  • Posts: 366
Re: synapse ans web sessions
« Reply #1 on: July 03, 2018, 05:09:10 pm »
Is it posible work with synapse and web sessions?

Yes, it is.

A session is a simply one or another of the http headers, which is available in Headers or Cookies, depending on protocol implementation.
Simply google what these are.
Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: synapse ans web sessions
« Reply #2 on: July 03, 2018, 05:43:47 pm »
Yes of course.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: synapse ans web sessions
« Reply #3 on: July 04, 2018, 05:54:02 am »
Session is server side visitor data, linked to a cookie. So as long as you keep passing around that cookie, you're browsing in the same session. What the cookie is depends on the server application (you decide the name and value), normally it should give one on first visit while also giving a new one when the session expires.

 

TinyPortal © 2005-2018