Welcome to the nuBuilder Forums!

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

Retrieve Hash Cookie

Questions related to using nuBuilder Forte.
Locked
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Retrieve Hash Cookie

Unread post by marc »

Hi,

I encounter a problem with retrieving a Hash Cookie that is set in a Browse Form like this

Code: Select all

if (nuFormType() == 'browse') {
  nuSetProperty('Cookie',  "abc"); 
}
When a search is started, PHP Before Browse is called. This is where I'm trying to retrieve the value of my previously set cookie.

the hash list does not contain my cookie "Cookie".

nuDebug(nuHash());

and this does not output the cookie either:
nuDebug("Cookie: #Cookie#");

What am I doing wrong?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Retrieve Hash Cookie

Unread post by admin »

marc,

Try

Code: Select all

nuDebug(nuHash()['Cookie']);
Steven
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: Retrieve Hash Cookie

Unread post by marc »

I get the same result, an empty output
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: Retrieve Hash Cookie

Unread post by marc »

Works now. I did something wrong :oops:
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Retrieve Hash Cookie

Unread post by admin »

marc,

Even the smart guys have a bad day every now and then.


Steven
Locked