NetTalk Central

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by JohanR on August 05, 2026, 04:48:24 AM »
Hi Jane

Thanks for the detailed reply,
I like the STARTED procedure with the timer running.
This way if I want to add other similar procedures they will be kept separate and organization will be clean.

Multi-host?
Would this be checked and started from the webserver or webhandler, just thinking about multihost situation.

thanks

Johan

12
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by Jane on August 04, 2026, 11:37:11 AM »
For something small like that, you might also consider Capesoft MaxQueue.

As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?

I have some webservers that need the underlying data refreshed periodically.  Perhaps I overcomplicate things, but my flow is:

1. When the app starts, START a window that has a timer.  Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate   
Code: [Select]
eqMyClose           equate(event:user + 4) 3. In the window that has a timer, in ThisWindow.TakeWindowEvent before the parent
Code: [Select]
        of eqMyClose
            ! any other cleanup code here
            post(event:closewindow) 
4. In the webserver procedure, at the beginning of thisWindow.Kill
Code: [Select]
    if GLO:DataServiceThread <> 0
      post(eqMyClose,,GLO:DataServiceThread)
    end ! if
5. Timer in window triggers refresh of data.
6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place.  Don't know whether that is needed with MaxQueue.
13
Web Server - Ask For Help / Global MEMORY file
« Last post by JohanR on August 03, 2026, 11:11:57 PM »
Hi,

I need a global MEMORY file with about 200 records that should be available to all sessions.
Data in the MEMORY file would be loaded/refreshed once a day

Sessions would read this data and use it in Netwebsource procedures to build HTML using local queues.

What is best practise and best place to load the data for safest and optimal performance.



thanks

Johan
14
Web Server - Ask For Help / Re: Nettalk and PassKey!
« Last post by Jane on August 03, 2026, 10:26:42 AM »
.
16
Web Server - Ask For Help / Re: Warning the user of session timeout
« Last post by rupertvz on August 02, 2026, 09:33:35 PM »
Thank you Jane,
17
Web Server - Ask For Help / Re: Warning the user of session timeout
« Last post by Jane on August 02, 2026, 12:59:23 PM »
Quote
or have implemented this

Are you using the session manager template settings?
https://www.capesoft.com/docs/NetTalk14/NetTalkWebFunctionality.htm#NetWebSource

If so, you might also add the logout logic I describe in this thread:
https://www.nettalkcentral.com/forum/index.php?topic=9482.msg38919#msg38919
18
Web Server - Ask For Help / Re: Warning the user of session timeout
« Last post by rupertvz on August 02, 2026, 07:35:39 AM »
Hi Everyone,

Following this topic, the post which Bruce replied with, no longer exists,
Anyone perhaps have record of it, or have implemented this?
19
Web Server - Ask For Help / Re: How to translate C# API call to NT
« Last post by AtoB on July 25, 2026, 07:54:37 AM »
Hi Ron,

dit this code actually run? As far as I know you cannot get a .POST to return the result right away ...

@Bruce: is this doable: adding a result (stringtheory object) and then somewhere set a ref to this result an automatically fill it when a response is received?

That would result i much cleaner code (and less work ...)
20
Web Server - Ask For Help / netwebclient : IPv6 addresses and port
« Last post by AtoB on July 25, 2026, 07:38:33 AM »
(Using nettalk 14.38 and stringtheory 3.86)

I'm trying to get a webclient GET working with an IPv6 address (::1) and a specific port (8090), like this

::1:8090/yadayada

I've activated the LoggingOn property and it shows it reverts to port 80.

I think (!) the methods : .URLHostOnly and .URLPortOnly in stringtheory get confused by the use of "::" for the IPv6 address.

Maybe it needs to get the last ":" in the Host part of the url in order to seperate the port?

When I change:

    e = self.findChar(':',p,,pURL)

To:

    e = INSTRING(':',pURL,-1,s)

In both methods, it works (but I'm not sure wether this introduces side effects ...)

B.t.w. (local) server is IPv6 and via a browser (using [::1]:8090/yadayada) a get a valid response (and the server name shows up as "::1" in Nettalk)
Pages: 1 [2] 3 4 ... 10