Search the Community
Showing results for tags 'sessions'.
-
This option would be so useful if it worked. The way it currently works is that, for both srOnePerIP and srOnePerPC, the user can successfully start any number of sessions and, after some delay, all sessions are killed except for the last one. The behaviour is the same regardless type of browser. The fact that the new session terminates a previously loaded busy session is very odd and the fact that it happens without any ability for us to give the user a reason for why the session has been killed is painfully unprofessional. Ideally, when a second session is started this new session it the one that should be immediately terminated and, as part of ServerMessages, we should have a SessionRestrictTemplate option that can be used to display an appropriate error message with some form of elegance. Maybe there is something I don't understand. If so can someone please explain.
-
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