Jump to content

Hi Everyone, Has anyone used PUTCOOKI and GETCOOKI functions...


Warren Hinchliffe

Recommended Posts

I quick update on GETCOOKI and PUTCOOKI

GETCOOKI will only work if you set a cookie value in the reporting server node.

PUTCOOKI only replaces the reporting server copy of the cookie.

Below is the steps provided as an example.

 

Login to the Administration console.

Select, reporting server, remote services, select a node, click modify

Under security object, cookie, enter the name of the cookie you want to read. It needs to be an existing cookie, like IBIWF_language.

Add IBIWF_language, click save, then clear cache.

The above steps, takes an existing client cookie, and makes it available to the reporting server

Make a focexec that can read the cookie, and modify the cookie.

-TYPE STEP1 get cookie.

-SET &GOT_COOKIE = GETCOOKI( IBIWF_language, A180);

-SET &GOT_COOKIE = TRUNCATE( &GOT_COOKIE);

-TYPE GOT_COOKIE = &GOT_COOKIE

-TYPE GOT_COOKIE.LEN = &GOT_COOKIE.LENGTH

-TYPE STEP2 put cookie

-SET &NEW_COOKIE_SET = PUTCOOKI(IBIWF_language,fr);

-* now read the cookie that you just updated.

-SET &GOT_COOKIE = GETCOOKI( IBIWF_language, A180);

-SET &GOT_COOKIE = TRUNCATE( &GOT_COOKIE);

-TYPE GOT_COOKIE = &GOT_COOKIE

-TYPE GOT_COOKIE.LEN = &GOT_COOKIE.LENGTH

Link to comment
Share on other sites

Hey @warren.hinchliffe

Let me see if I understand - I think what you were hoping for was a way to cause a cookie to come to life (like SETCOOKI if there were such a thing).

But what you got is a way to Update a cookie (via PUTCOOKI) and a way to retrieve the value.

Think its a good NFR to try to make a SETCOOKI I started looking through what I could find of decompiled code and couldnt find anything hidden that might do that.

Am I understanding that right

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...