Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Global Hash cookie disappears

Questions related to customising nuBuilder Forte with JavaScript or PHP.
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Global Hash cookie disappears

Unread post by luca.ongaro »

Hi, happy new year.
I am facing a weird problem.
I set a global HK in my nuuserhome using nuSetProperty() with true as 3rd argument, to use it in a form.
The HK works as expected in BB code, but is unavailable to BE.
According to nuDebug(nuHash()); the HK disappeared...
Thank for any hint
Last edited by luca.ongaro on Tue Jan 02, 2024 10:37 am, edited 1 time in total.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Global Hash cookie disappears

Unread post by kev1n »

Hi,

Happy New Year!

If you refresh the form after opening it, is the HK still unavailable?
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: Global Hash cookie disappears

Unread post by luca.ongaro »

Refreshing the form brings me back to nuuserhome
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Global Hash cookie disappears

Unread post by kev1n »

How is the form opened?
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: Global Hash cookie disappears

Unread post by luca.ongaro »

Clicking on a Run button. The HK is set when the user changes a Input text in nuuserhome.
The form opens initially as browse, then the user can select a record for edit, or add a new record
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Global Hash cookie disappears

Unread post by kev1n »

Are you using the onchange or oninput event to set the HK? Try oninput if you haven't already.
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: Global Hash cookie disappears

Unread post by luca.ongaro »

I was using onchange, now I added also oninput but still without success. Same with onblur
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: Global Hash cookie disappears

Unread post by luca.ongaro »

UPDATE:
If I understand correctly, the global HKs are stored in zzzzsys_session, as sss_hashcookies. Well, my DB has no trace of HKs.
UPDATE #2:
Apparently, no HKs are set anywhere.
My application probably works only because accidentally I gave to my (non-existent) HK the same name of the nuuserhome object.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Global Hash cookie disappears

Unread post by kev1n »

Are you using the latest nuBuilder?
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: Global Hash cookie disappears

Unread post by luca.ongaro »

I am using
DB Version: V.4.5-2023.03.07.00
Files Version: V.4.5-2023.04.08.00
Post Reply