Focal Point
&IBIC_user variable

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1011098331

August 18, 2005, 03:16 PM
Spence
&IBIC_user variable
I have an HTML page that captures a user entered password in the variable &IBIC_user. This works fine however if the user refreshes their browser session and types in another password the &IBIC_user variable is keeping the first password. Is there a way for the HTML page to clear out the old password. My browser is IE 6.0.2800.1106, WF v5.33, Windows 2000 server.
August 18, 2005, 03:41 PM
Kamesh
try add this code with in your HEAD tag.

META http-equiv=Pragma contane=no-cache
META http-equiv=Cache-Control content=no-cache
META http-equiv=Expires content=0
August 18, 2005, 03:59 PM
Francis Mariani
slight typo on the first line:

<META http-equiv="Pragma" content="no-cache">

August 18, 2005, 05:06 PM
Spence
I added this code and still only picking up the first password that was entered.

META http-equiv=Pragma content=no-cache
META http-equiv=Cache-Control content=no=cache
META http-equiv=Expires content=0
August 18, 2005, 05:49 PM
Francis Mariani
What does the HTML page do?

IBIC_user should be the user id.

IBIC_pass should be the password.
August 18, 2005, 06:18 PM
Spence
The HTML page captures the value entered into &IBIC_user. I referred to the value as a password it can be called a user id. The value entered in &IBIC_user is compared to values stored in a database via a fex to determine what the user is allowed to run.
August 18, 2005, 06:36 PM
Kamesh
try change the cgivars.wfs - c:/ibi/apps/srv/wfs

WF_COOKIE_EXPIRATION = 0
EXPIRE_REPORTS=300
August 18, 2005, 06:50 PM
Spence
that is what cgivars.wfs has
August 18, 2005, 07:00 PM
Francis Mariani
Have you tried adding an onSubmit or onClick action to see what's actually in the form object?

onClick="alert(document.forms[0].IBIC_user.value);"

August 19, 2005, 04:02 PM
TexasStingray
What I would do is someting like this.
Create a Session Variable & instead of
calling it IBIC_user let scall
the variable something like UID.
With that said I would then
edit my site.wfs file and create a session variable like this
#Check to see if the 
variable exist that is coming in 
from a html page some where.
# Store the variable in a session 
any name will do but lets call it _SessionVar_UID
httpsession=_SessionVar_UID
 <call> CopyWFVarToSessionVar(
UID,httpsession)
<endif><br />#
# lets retrieve the variable out f
rom the session<br />wfvar=UID<br />httpsession=_SessionVar_UID
<call> CopySessionVarToWFVar
(httpsession,wfvar)
# Finally Let pass the variable bact to the WebFOCUS Reporting Server where 
it can use it.<SET>UID(pass)
# If you realy need to call 
it IBIC_user you could add this lineIBIC_user=&UID
And if you want pass it bact to the 
reporting server<br /><SET>IBIC_user(pass)

Hope this Helps

This message has been edited. Last edited by: <Mabel>,
August 22, 2005, 06:17 PM
Spence
TexasStingray,

the same thing is happening with the variable uid. if i do a refresh of the browser and enter a new value the first value entered in uid is what is displaying. some how the first value entered in uid is being cached and when a new value is entered in uid it is not overlaying the previous value.
August 25, 2005, 01:31 PM
anush
Spence,

When you say "refresh browser session" do you mean closing down your browser and opening it up again, or just using the same browser window and loggin in a second time? I ask because if you do not completely close down your browser, it might continue to maintain the cookie from you initial login session.

You could force a cookie cleanup by calling the WF_SIGNOFF (might want to check up on the exact param name to use) action. This would prevent unwanted session persistence.