FCL-WEB: OnInitSession is called at wrong place in iniwebsession
Original Reporter info from Mantis: zeljko@holobit.net @zeljan1
-
Reporter name: Zeljan Rikalo
Original Reporter info from Mantis: zeljko@holobit.net @zeljan1
- Reporter name: Zeljan Rikalo
Description:
According to the wiki page https://wiki.lazarus.freepascal.org/fpWeb_Tutorial
"In case of a new session, OnNewSession will be called. Initialize your session variables here."
Actually there's no way to initialize eg variables Session.Variables["myvariable"] := '2' since FIniFile is not created yet.
We even do not get Session ID inside OnNewSession ....
I cannot create patch because of technical problems...so please move
If Assigned(OnNewSession) then
OnNewSession(Self);
after
FSessionStarted := True; inside iniwebsession.pp (TIniWebSession.InitSession)
Mantis conversion info:
- Mantis ID: 36075
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 42993 (#55c4c61c)
- Target version: 3.2.0