NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hkalmbach

Pages: [1] 2 3 ... 6
1
Web Server - Ask For Help / Re: Cookie handling
« on: December 04, 2024, 03:12:37 AM »
Hello Bruce,

one additon: in the first HTTP block I see the cookies. In the following not. I don't know why this happens within one sesson.

Cheers
Heinz

2
Web Server - Ask For Help / Re: Cookie handling
« on: December 04, 2024, 12:58:33 AM »
Hi Bruce,
thanks for your answer.
Unfortunately this does not work in the example I made for test.

I set the cookies in the login form on ValidateUpdate, directly after setting them I try to read them with getCookie and getValue. Both works.
After that I go back to indexpage and try to read again on ProcedureSetup and there both do not work. I put the web3 example changed in the attachment.


1   0.000000   11296   web3.exe   [st][3] [netTalk][thread=3] LoginForm GetCoookie Loc_Login: DEMO
2   0.000068   11296   web3.exe   [st][3] [netTalk][thread=3] LoginForm GetCoookie Loc_password: demo
3   0.000129   11296   web3.exe   [st][3] [netTalk][thread=3] LoginForm SessionId: PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ
4   0.000188   11296   web3.exe   [st][3] [netTalk][thread=3] LoginForm GetValue Loc_Login:
5   0.000240   11296   web3.exe   [st][3] [netTalk][thread=3] LoginForm GetValue Loc_password:
6   0.000716   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_Login: DEMO
7   0.000800   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_password: demo
8   0.000847   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage SessionId: PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ
9   0.000902   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_Login:
10   0.000958   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_password:
11   0.002936   11296   web3.exe   [st][3] [netTalk][thread=3] [SEND LEN 2658] HTTP/1.1 200 OK
12   0.002936   11296   web3.exe   Date: Wed, 04 Dec 2024 08:55:16 GMT
13   0.002936   11296   web3.exe   Expires: Tue, 05 Dec 2023 08:55:16 GMT
14   0.002936   11296   web3.exe   Content-Length: 1932
15   0.002936   11296   web3.exe   Content-Encoding: gzip
16   0.002936   11296   web3.exe   Content-Type: text/html
17   0.002936   11296   web3.exe   Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
18   0.002936   11296   web3.exe   Pragma: no-cache
19   0.002936   11296   web3.exe   Set-Cookie: SESSIONIDX=PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ; path=/; HttpOnly; SameSite=Strict
20   0.002936   11296   web3.exe   Set-Cookie: LOC__LOGIN=DEMO; expires=Thu, 02 Jan 2025 23:00:00 GMT;; path=/
21   0.002936   11296   web3.exe   Set-Cookie: LOC__PASSWORD=demo; expires=Thu, 02 Jan 2025 23:00:00 GMT;; path=/
22   0.002936   11296   web3.exe   Connection: close
23   0.002936   11296   web3.exe   Access-Control-Allow-Origin: *
24   0.002936   11296   web3.exe   X-Frame-Options: sameorigin
25   0.002936   11296   web3.exe   Referrer-Policy: strict-origin-when-cross-origin
26   0.002936   11296   web3.exe   X-Content-Type-Options: nosniff
27   0.002936   11296   web3.exe   X-Xss-Protection: 1; mode=block
28   0.002936   11296   web3.exe   
29   0.002936   11296   web3.exe   ?
30   0.031145   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_Login:
31   0.031202   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_password:
32   0.031255   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage SessionId: PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ
33   0.031315   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_Login:
34   0.031371   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_password:
35   0.034410   11296   web3.exe   [st][3] [netTalk][thread=3] [SEND LEN 2411] HTTP/1.1 200 OK
36   0.034410   11296   web3.exe   Date: Wed, 04 Dec 2024 08:55:16 GMT
37   0.034410   11296   web3.exe   Expires: Tue, 05 Dec 2023 08:55:16 GMT
38   0.034410   11296   web3.exe   Content-Length: 1932
39   0.034410   11296   web3.exe   Content-Encoding: gzip
40   0.034410   11296   web3.exe   Content-Type: text/html
41   0.034410   11296   web3.exe   Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
42   0.034410   11296   web3.exe   Pragma: no-cache
43   0.034410   11296   web3.exe   Connection: close
44   0.034410   11296   web3.exe   Access-Control-Allow-Origin: *
45   0.034410   11296   web3.exe   X-Frame-Options: sameorigin
46   0.034410   11296   web3.exe   Referrer-Policy: strict-origin-when-cross-origin
47   0.034410   11296   web3.exe   X-Content-Type-Options: nosniff
48   0.034410   11296   web3.exe   X-Xss-Protection: 1; mode=block
49   0.034410   11296   web3.exe   
50   0.034410   11296   web3.exe   ?
51   0.251435   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_Login:
52   0.251483   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_password:
53   0.251535   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage SessionId: PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ
54   0.251593   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_Login:
55   0.251647   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_password:
56   0.253522   11296   web3.exe   [st][3] [netTalk][thread=3] [SEND LEN 2411] HTTP/1.1 200 OK
57   0.253522   11296   web3.exe   Date: Wed, 04 Dec 2024 08:55:16 GMT
58   0.253522   11296   web3.exe   Expires: Tue, 05 Dec 2023 08:55:16 GMT
59   0.253522   11296   web3.exe   Content-Length: 1932
60   0.253522   11296   web3.exe   Content-Encoding: gzip
61   0.253522   11296   web3.exe   Content-Type: text/html
62   0.253522   11296   web3.exe   Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
63   0.253522   11296   web3.exe   Pragma: no-cache
64   0.253522   11296   web3.exe   Connection: close
65   0.253522   11296   web3.exe   Access-Control-Allow-Origin: *
66   0.253522   11296   web3.exe   X-Frame-Options: sameorigin
67   0.253522   11296   web3.exe   Referrer-Policy: strict-origin-when-cross-origin
68   0.253522   11296   web3.exe   X-Content-Type-Options: nosniff
69   0.253522   11296   web3.exe   X-Xss-Protection: 1; mode=block
70   0.253522   11296   web3.exe   
71   0.253522   11296   web3.exe   ?
72   0.336126   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_Login:
73   0.336188   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage Loc_password:
74   0.336241   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage SessionId: PCr91q3r6sGjitnrvkMHl5ceQ2JfLZ
75   0.336297   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_Login:
76   0.336355   11296   web3.exe   [st][3] [netTalk][thread=3] IndexPage GetValue Loc_password:
77   0.338225   11296   web3.exe   [st][3] [netTalk][thread=3] [SEND LEN 2411] HTTP/1.1 200 OK
78   0.338225   11296   web3.exe   Date: Wed, 04 Dec 2024 08:55:16 GMT
79   0.338225   11296   web3.exe   Expires: Tue, 05 Dec 2023 08:55:16 GMT
80   0.338225   11296   web3.exe   Content-Length: 1932
81   0.338225   11296   web3.exe   Content-Encoding: gzip
82   0.338225   11296   web3.exe   Content-Type: text/html
83   0.338225   11296   web3.exe   Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
84   0.338225   11296   web3.exe   Pragma: no-cache
85   0.338225   11296   web3.exe   Connection: close
86   0.338225   11296   web3.exe   Access-Control-Allow-Origin: *
87   0.338225   11296   web3.exe   X-Frame-Options: sameorigin
88   0.338225   11296   web3.exe   Referrer-Policy: strict-origin-when-cross-origin
89   0.338225   11296   web3.exe   X-Content-Type-Options: nosniff
90   0.338225   11296   web3.exe   X-Xss-Protection: 1; mode=block
91   0.338225   11296   web3.exe   
92   0.338225   11296   web3.exe   ?
93   7.965041   11296   web3.exe   [st][3] [netTalk][thread=3] [SEND LEN 547] HTTP/1.1 200 OK
94   7.965041   11296   web3.exe   Date: Wed, 04 Dec 2024 08:55:24 GMT
95   7.965041   11296   web3.exe   Expires: Tue, 05 Dec 2023 08:55:24 GMT
96   7.965041   11296   web3.exe   Content-Length: 73
97   7.965041   11296   web3.exe   Content-Type: text/xml
98   7.965041   11296   web3.exe   Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
99   7.965041   11296   web3.exe   Pragma: no-cache
100   7.965041   11296   web3.exe   Connection: close
101   7.965041   11296   web3.exe   Access-Control-Allow-Origin: *
102   7.965041   11296   web3.exe   Accept-Ranges: bytes
103   7.965041   11296   web3.exe   X-Frame-Options: sameorigin
104   7.965041   11296   web3.exe   Referrer-Policy: strict-origin-when-cross-origin
105   7.965041   11296   web3.exe   X-Content-Type-Options: nosniff
106   7.965041   11296   web3.exe   X-Xss-Protection: 1; mode=block
107   7.965041   11296   web3.exe   
108   7.965041   11296   web3.exe   <?xml version="1.0" encoding="utf-8"?>
109   7.965041   11296   web3.exe   <ajax-response></ajax-response>

Cheers
Heinz

3
Web Server - Ask For Help / Re: Cookie handling
« on: December 02, 2024, 11:22:20 PM »
Hi Bruce,

thanks for your answer. I think its a normal cookie, you can see in the screenshot. It appears together with the session Id as well in the web server window and also in the browser.
I set the cookie when the username and password are accepted in the login form. If I then come back to my Indexpage the cookie can be read (Debugview).
For test I then delete the session Id, close the tab and open a new one. In the moment when I start to type the URL (localhost:2338) and its put in the addres line a request is sent to the web server which contains all three cookies as shown in the screenshot. This happens even before I accept the URL and the login form is shown. If I then accept the URL again a request is shown in the web server window and this also again contains my 'MAGWEBUSERLOGGEDIN'-cookie. But now it is not read by p_web.GetCookie('MAGWEBUSERLOGGEDIN'). I don't get a value, its empty. But its still shown in the browser and the web server window.

This feature I only use for a special situation. The users use their smartphones connecting to the app by scanning a QR code which contains the complete URL to the web server and a machine number as parameter. They use it for inventory, that means they go from machine to machine, scan the QR code with the camera or a QR code app and therefore open always a new session. If they scan serveral machines in a short time they should not have to login all the time. The cookie should only exist for lets say 10 minutes.

Or is there another possibility to stay logged in when scanning a QR code with the camera and from there open the URL to the web application?

Thanks a lot

Cheers
Heinz

4
Web Server - Ask For Help / Cookie handling
« on: December 02, 2024, 01:15:42 PM »
Hello,

I would like to set a cookie with livetime of some minutes for a webserver. The value is the user id of the person who logged in. If the user leaves and calls again the webserver within the amount of the livetime of the cooke he should not have to login again.

for that I set the cookie directly after the login:

p_web.SetCookie('MAGWebUserLoggedIn',UserId,TODAY(),CLOCK()+xMinutes*6000)   

Directly after setting the cookie I can read the value of the UserId by

UserId = p_web.GetCookie('MAGWebUserLoggedIn')

Unfortunately, if I start a new window of the browser and read at the beginning of my indexpage i don't get the UserId by the command

UserId = p_web.GetCookie('MAGWebUserLoggedIn')

The cookie is empty.
But if I look in my new browser window with F12 at the cookie list I see my cookie, see attachment.

Does somebody know, why I can't read this cookie in a new session?


Thanks for any help.

Cheers

Heinz

5
Web Server - Ask For Help / msvcr140.dll is missing
« on: May 28, 2024, 01:27:33 AM »
Hello,
I tried to configure email sending on a windows server 2022. For this I used netdemo / Email send.
The email should be send by smtp.office365.com. On sending the test email I get the message that some dll's could not be loaded.
Everything is present but not msvcr140.dll.
Is this a microsoft dll? Can somebody help?

Cheers
Heinz

6
Web Server - Ask For Help / Calling a form by URL from external
« on: February 07, 2023, 06:50:48 AM »
Hello,
my aim is to create an email which contains the URL to work on a specific order in the web application.
This email is NOT created by a NetTalk web application but by a normal clarion application. Therefore it does not know anything about row Id (as mentioned in https://www.capesoft.com/docs/NetTalk9/NetTalkWebFAQ.htm#W4)
I tried the old example mentioned there, in my case it looks the following:

http://appserver:2338/WebUpdateAuftraege?WAF:Auftragsnummer=15761&change_btn=change

To use the form WebUpdateAuftraege the user has to be logged in. Therefore, if I use the link of the email, I am first redirected to the login page and the get to the update form.
But there the correct record is not read, the form is empty beside the order number (15761).
If I instead copy the URL in a browser tab, where I before logged in to the web application and the user is known, the link works, the correct orders is loaded and displayed, can be changed and save as expected.

The URL in this case still is displayed after loading the record.
Before, with the redirection, the URL I see in the update form is http://appserver:2338/WebUpdateAuftraege?_chain_=1

Is there a way to call an update form from external without having the nettalk row Id (with redirection to a login form)?

Thanks for every help.

Cheers
Heinz

7
Hi Bruce,

I don't see any effect with these driverstring options.

Is there a way to trap and ignore this errors?
That there is no message box in the webserver?

Cheers
Heinz

8
Web Server - Ask For Help / Nettalk File Error 33 with SQL Express
« on: July 20, 2022, 12:36:07 AM »
Hello,
I am using NetTalk 12.41 and SQL Express.
I have a browse with an Edit in Place Checkbox.
If I check some lines in the browse fast the WebServer produces an error message (error 33) and also DebugView gets error messages.

67   29.923422   15280   MagWeb.exe   [st] [netTalk][thread=4] NETTALK FILE ERROR: 33 Satz nicht verf?gbar! :: 0
68   29.931760   15280   MagWeb.exe   [st] [netTalk][thread=4] NETTALK FILE ERROR: 33 Satz nicht verf?gbar! :: 0
69   29.932107   15280   MagWeb.exe   [st] [netTalk][thread=4] NETTALK FILE ERROR: 33 Satz nicht verf?gbar! :: 0
70   29.932671   15280   MagWeb.exe   [st] [netTalk][thread=4] NETTALK FILE ERROR: 33 Satz nicht verf?gbar! :: 0

The problem is, the error messages appear on the server, mostly the webserver runs as windows service and nobody sees them. Then the web server hangs.

Does someone know how to trap these file error messages to get no message boxes in the web server?

Thanks in advance

Cheers
Heinz

9
Web Server - Ask For Help / Client countdown
« on: March 18, 2021, 07:51:58 AM »
Hello,

I want to offer the user a countdown for being logged out and of course activate the countdown on client side.
I found no example where I can see this all. I found some where page footer the embed code

  if (p_web.GetSessionLoggedIn() and p_web.PageName <> 'LoginForm')
    ! parameter 1 is the session time
    ! parameter 2 is the name of the login page.
    ! parameter 3 is the id of the <div> in the html.
    p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"' & clip(p_web.site.DefaultPage) & '?logout_btn=logout_btn","countdown");') 
  end


is present (one is web67), but the logout is not performed. Also I did not succeed to show the user the count down.
Is there an example which contains all that?
What can be wrong?
Where exactly I have to insert the code for showing the countdown to the user?

Thanks for every help.
Cheers
Heinz

10
Web Server - Ask For Help / Manually saving form contents
« on: October 07, 2020, 07:09:12 AM »
Hello,

I have a NetForm, based on Memory, and do updates to database manually with a button, calling the form itself with an action parameter. This action parameter is evaluated on GenerateForm, and 
gets the contents by GSVs on the form fields, then does the save action.
This works well beside one point: there is only one text field and the save button on the form. If I change the text WITHOUT leaving the field by tab the entered content is not available by a GSV.
If I first leave the field and then press my save button the text is available.

Can I do something to get the text without accepting the textfield, that means write text and directly press SAVE?

Thanks a lot

Cheers
Heinz

11
Hi,
no, I did not make any changes, perhaps I added a column in the browse, but nothing funtional as far as I now.

The 'no records message' is not empty and also I don't use span columns.

Do you think its a problem of the browse or of the form?

Thanks for every help

Cheers
Heinz

12
Web Server - Ask For Help / NetBrowse does not refresh after delete
« on: May 04, 2020, 01:15:48 AM »
Hello,

I don't know exactly when i began, but there was a NetTalk version where after a deleting a record the browse was automatically refreshed and the deleted record no longer displayed.
Now with Clarion 11/NetTalk 11.32 this does not work.
I have a delete record button in every line of the browse. The record really is deleted, but the browse does not refresh, I need to press F5 or change the page and go back to see the effect.
In a previous version of NetTalk this worked automatically, but I cannot say which version exact, the clanet.dll shows no version nummber, but it has a change date 10/26/2018.
I have this effect in all my browse/form combinations.

Has someone an idea what to do to get the browses freshed automatically?

Thanks a lot.

Cheers
Heinz

13
Web Server - Ask For Help / Re: NetWebClient and jFiles
« on: April 20, 2020, 11:47:49 PM »
Hi Bruce,

sorry, was out of office.
NetTalk 11.27
jFiles 1.71

For the actual case the problem is solved, I included jFiles manually. This works as described in your manual. The error only appears if included by the global extension template.

Cheers
Heinz

14
Web Server - Ask For Help / NetWebClient and jFiles
« on: April 15, 2020, 04:15:50 AM »
Hello,

I have a small test app with a NetWebClient to send request to a WebService.
This works very well. The content of the pages I receive are json objects.
Therefore I add jfiles to global extension. If I then compile my app without adding anything else concering jfiles I get the errors from the picture in the attachment.
I seems to be concerned to Netmaps, but I don't want to use maps, I even don't want to use a web server in this app.

Does someone know what to do?

Thanks a lot.

Cheers
Heinz

15
Web Server - Ask For Help / Re: NetBrowse with fixed column widths
« on: March 29, 2020, 09:57:06 AM »
Hi Don,

thanks for your answer.
I tried to use min-width. If you scroll my picture right you see that I define a min-width of 80, but also that this is not used.
Something is overwriting it (its crossed out) and I don't know what does this and how to overrule it.

You have an idea?

Thanks
Heinz

Pages: [1] 2 3 ... 6