Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] WF_USER cookie / logged in user

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WF_USER cookie / logged in user
 Login/Join
 
Member
posted
Hi all,

after a few hours of trying I post this message - hope my question is an easy one.

I would like to add to all reports (in the html section) a link to a feedback formular and would like to get the users login name automatically.

As I understood the documentation there should be a cookie WF_USER containing this information - but I can't find this cookie. I have found even the setting to encrypt that one - but still it is not there.

Does anyone know how to get this cookie or is there another way to get the user login in the html section of an report. I was able to add it to the fex - but that does not help me, as I have reports which a) produce no data or b) don't run an fex after opening the report.

Another solution could be to set my own cookie after login - but where can I add this piece of code? I was able to add it onto the logon page but then I do not know if the login which was typed in was ok or not.

Using WF 7.6.6

Thanks
Torsten

This message has been edited. Last edited by: Kerry,


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Master
posted Hide Post
&IBIMR_user.. is this not what you are looking for?


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Member
posted Hide Post
is &IBIMR_user not a variable used in the fex? i need it in the html part of the report....


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Member
posted Hide Post
Hello
If you want to use the variable &IBIMR_user in a .Fex you must add
that line
IBIMR_user(pass)
On you WebFocus Administrator Console
Configuration/ Custom Settings


WebFOCUS 7.6.9
iWay 5.5, 6.0
iSeries
All formats
 
Posts: 3 | Registered: September 08, 2009Report This Post
Member
posted Hide Post
hi hgouin,

thanks - but in an fex it is working - but i'm looking for the information within the html part of the report - without running an fex.

i need the login before i execute a report - for other purposes - not to limit on it or similar.

Also described it in more detail in my initial message

thanks
torsten

thanks
torsten


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Expert
posted Hide Post
Here's a method to find out what cookies were saved for the server or domain:

1) On the Internet Explorer Links toolbar, add a page (any page) by dragging a URL to the Links toolbar.
2) Right-click and select Properties of the newly created Link. On the Web Document tab, enter the JavaScript code below in the URL textbox and on the General tab, enter "cookies" as the name of the Link.
3) Click OK, also click OK for any warning pop-up messages.

Now, when you click on this Link, a pop-up window will display the cookie values for the server or domain of the current web page.

JavaScript:
javascript:if(document.cookie.length<1){alert('No%20cookie%20for%20this%20site.')}else{alert('Cookie%20for%20this%20site:'+document.cookie)}


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Hi Francis,

thanks for the tip - but my problem is not that I don't know how to see the cookie - the cookies is simply not there. Your code told me the same. Btw with Firefox there are easier ways to see your cookies.

My problem is a) that there is no cookie WF_User and/or b) that I do not know how to get the username of the logged in user in the html part of an report and NOT in the fex.

Thanks
Torsten


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Expert
posted Hide Post
Torsten,

Is this a self-service (non-MRE) application?

Does your login page use the normal form fields for a WebFOCUS login, like IBIC_user, IBIWF_action and WF_SIGNON_MESSAGE?

This minimal test login page generates the WebFOCUS cookies:

<html>
<head>
<title>Test Logon</title>
</head>

<body>

<form action='/ibi_apps/WFServlet' method='post'>

<input type='hidden' name='IBIWF_action' value='WF_SIGNON'>
<input type='hidden' name='WF_SIGNON_MESSAGE' value='../../approot/test/dummy.htm'>

User <input type='text' name='IBIC_user' value='' />
Password <input type='password' name='IBIC_pass' value='' />

<input type='submit' value='Submit'>
</form>

</body>
</html>


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Hi Francis,

afaik we use the standard forms provided by ibi itself url http://server/ibi_apps/bid-login? /using jk_mod to redirect apache requests

If I like to change the logon form I work on the file WORP_Login.jsp.

Form starts with:

  
  <body bgcolor="#fcfbff" class="default" onload="java_script:pageLoaded[);">
    <form action="/ibi_apps/Controller" method="post" name="userform">
      <input type="hidden" name="IBIWF_language" value="de">
      <input type="hidden" name="WORP_REQUEST_TYPE" value="WORP_LOGIN">


Hope I answered the question - but I'm not that long used to work with IBI to be honest - so I may get things wrong - sorry upfront

Torsten


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Expert
posted Hide Post
A BID login is completely different than a self-service login.

The cookie for a BID login here looks like:

JSESSIONID=814783148E3A81D6DEAF8260C1BDD19B
IBIWF_language=en
MR_COOKIE=1f4057910b6dcc6ceaa2b85a3600da0f1706206ba2d5c3597133b9c5b3bdb6f30c5f0c54cd48f1bc
a3e0970f7c5176c7f1414bd1e0fd60a6222d89606bdb66ad2fac5176c5cec3ed59ff533938ce7666da0f280840
27ac7408087bdf8af27498b4137deebb601ffd67388a3224070ee0bc8d07e41b885fd60c2bf37dbd8f228d0b01
1d179bda90d9bdd4e077c7010fdacf136191fbf8ab6d37176835e235e30cd06d4ddf1e1bab9e15d7457e96c587
8431dbe114b107d41cb6f01a6f3f06bbfd6376e7060b05c1bb5a0155a53c60d2ca35b11e7891a2f6a0f03ed8b8
e7224f9b080aee657a6dde7666d7d07d0d90f493e57f021b9b8c11da958457734e33612f0e7ea8ce3ff4c3f770
238258c216385fd5fdc5e7bdb364d27f8a29398732fee2053a2529b564cd5bef1f55556df648edc0efcbba9987
c25db84d7cf7c18f4f9a17c0d08764e173a5bca8534c29abc1707984bab1f0075982b63398a88c1f7f3fb7b3dd
9d07bff357643ba51623b28e624e66460b2fdfdfcd67a9dc1ee0624262cdec934b4ca7366d5868aaa5a05bed7c
81616201bd2706aa01a3e3ddf108a18247c2a330d146fe450a4b535ad29eacf19a
WF_SESSIONID=12bb75409e775bd7101f5c24657053fb3

Which looks like the information may be encrypted. I'd have to look into how to get the user ID into an HTML page...

Meanwhile, you may want to take a look at this:

Copying WebFOCUS Variables Using the WebFOCUS Servlet Plug-in though this may be overkill!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
If you are using BID, the WF_USER cookie does not exist (as you have noticed). You have the MR_COOKIE, but as Francis pointed out, you would have to decypt it to use it. I would suggest that if you are changing the WORP_Login.jsp anyway, why not create your own cookie at submission time. The userid is part of the form, so it shouldn't be a problem to create or use.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Member
posted Hide Post
Hi all,

thanks for all your answers. I hoped there would be another way to use the username without my own cookie. I have now implemented it the way that i create a cookie while click on sign on button and set a cookie with livetime 0 - means get disturbed once browser is closed.

thanks all for your answers.

Torsten


webfocus76
debian linux
HTML
 
Posts: 8 | Registered: September 10, 2009Report This Post
Expert
posted Hide Post
Copying WebFOCUS Variables Using the WebFOCUS Servlet Plug-in describes how to save variables like IBIMR_user, available as a cookie, HTML or Dialogue Manager variable...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] WF_USER cookie / logged in user

Copyright © 1996-2020 Information Builders