Page 1 of 1

Retrieve Hash Cookie

Posted: Wed Aug 22, 2018 9:05 am
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?

Re: Retrieve Hash Cookie

Posted: Thu Aug 23, 2018 5:59 am
by admin
marc,

Try

Code: Select all

nuDebug(nuHash()['Cookie']);
Steven

Re: Retrieve Hash Cookie

Posted: Thu Aug 23, 2018 6:30 am
by marc
I get the same result, an empty output

Re: Retrieve Hash Cookie

Posted: Thu Aug 23, 2018 6:52 am
by marc
Works now. I did something wrong :oops:

Re: Retrieve Hash Cookie

Posted: Thu Aug 23, 2018 7:19 am
by admin
marc,

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


Steven