Search the Community
Showing results for tags 'sessions'.
-
How do we interrogate UniServerModule to count how many active live sessions there are ?
-
I need to make one client send parameters, and others read them. I do not understand how to do this. Here is an example: in browser i sent "demo:1234@192.168.xxx.1:8077/?luxs=46&onoff=0" procedure TMainForm.UniTimer1Timer(Sender: TObject); begin if UniApplication.Parameters.Values['luxs']<>'' then lux1:=strtoint(UniApplication.Parameters.Values['luxs']); UniProgressBar1.Position:= lux1; end; It's work fine for client who sent it. But not for all client sessions. Trying to do an analysis leads to exception: procedure TUniServerModule.UniGUIServerModuleHTTPCommand( ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); begin if ARequestInfo.AuthExists and (ARequestInfo.AuthPassword='1234') and (ARequestInfo.AuthUsername='demo') then begin if ARequestInfo.Params.Values['luxs']<>'' then MainForm.lux1:=strtoint(ARequestInfo.Params.Values['luxs']); Exit; // Authentication is successful end else begin AResponseInfo.AuthRealm := 'Enter credentials for ' + Title; handled:=True; end; end; If you have simple code examples, please write them in this thread/ Thank u!
- 5 replies
-
- Passing
- Parameters
-
(and 3 more)
Tagged with:
-
Random Problem : "Web session terminated." with a new session !!
sagt3k posted a topic in Deployment
Hello to all. I am developing an application .exe with the configuration StandaloneServer = True. The application resides on a PC with Win7/64 (but I checked with WinServer2008/64 is the same). In practice, it often happens randomly that when I plug in a new session I get out of the error "Web session terminated". I'm not using the configuration ISAPI / DLL but an exe application. It's need to configure something on IIS or on the PC Server ? Thanks