Recent

Author Topic: fp-web and session example  (Read 2502 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
fp-web and session example
« on: November 19, 2018, 12:05:31 pm »
Hi guys, I tried to do a test to see if I could make the fp-web sessions work. Specifically, the unit iniwebsession. But it does not work, he tells me

Error: No web session active: Session was not started

I attached a very small example of how I thought it should work. Who explains where I'm wrong? Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

nummer8

  • Full Member
  • ***
  • Posts: 108
Re: fp-web and session example
« Reply #1 on: November 19, 2018, 05:25:51 pm »
Hi,

For the session implementation you build is a demo in
fpcsrc/packages/fp-web/examples/session

The routing system in fpc is changed.
Therefor the new routing system can handle the session on a different way.
As an attachment a small demo on how you can implement a session using the new routing system.
This demo was given to me by Michael.
Maybe it will help you to succeed the session challenge.

Jos

 

TinyPortal © 2005-2018