on 05-29-2008 12:18 PM
Hi,
I am facing the following issue:
I have logged in with user id u2018User1u2019 on my machine and opened screen A in a new window. On page load, I get the IllumLoginName session variable as u2018User1u2019.
With this session and the screen A still open, if I log in with user id u2018User2u2019 on the same machine and open screen A in the same window, I still get the IllumLoginName session variable as u2018User1u2019 instead of u2018User2u2019 on page load.
If I close the first window and then open screen A in a new window, the session variable returns u2018User2u2019.
Can anybody help me out on this? Why is the session variable still referring to the previously-logged in user when the window remains open?
Thanks,
Amrita
Hi Amrita,
This is happening because of cache problem.
Pass refresh= 1 as session variable along with user id and call the below function body onload, in which page you are getting the session variable from previous page.
function getRefresh()
{
if( document.Appletname.getPropertyValue("refresh") == 1)
{
document.Appletname.setPropertyValue("refresh",0);
window.location.reload(true);
}
else
{
document.Appletname.setPropertyValue("refresh",1);
}
}
Hope this may work out.
Thanks,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amrita,
Something similar happened in our project, we were capturing the user using the function: document.Applet.getUserName ().
found that the correct function is: document.Applet.getPropertyValue ( "IllumLoginName") and the problem was solved.
I hope it can help it.
Greetings,
Marcelo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess what Jeremy was asking is how do you log out, as in do you just close the browser of is there an explicit 'Logout' link?
I had a question , the statement -document.Applet.getPropertyValue ( "IllumLoginName"), do you use this in a function that you call on BODY load=""?.
Instead of this if you just want to display the name simply use instead of using any applet method and if you need the value for further use then declare a hidden input type whose value = "" and then use the value of the hidden variable for further manipulation.
Hi Udayan,
We normally logout using the 'Logout' link in the top right-hand corner of the window, but in this particular scenario, two users are logged in the same machine at the same time with both the user sessions active.
I have tried the method which you had suggested of using a hidden variable with the value set to , but it did not solve the problem. It still returns the username of the first user who has logged in, even in the second session. I am accessing this value in a script embedded in html.
Thanks,
Amrita
Edited by: Amrita Nandagopal on Jun 2, 2008 8:47 AM
Hi Musarrat,
I tried doing the same, but it returned the first user's login name in both the sessions.
Did you try with both the users logged in or with the first user logged out? And also, we need to open the screen in the same window for both the users(so that two versions of the same screen do not exist on the same machine).
Thanks,
Amrita
Amrita,
Two possibilities come to mind. Java cache not clearing and Browser cache not clearing.
First test is while first screen is still open, go to Java Console (under Tools). X to clear cache. Then open second screen. See if it is correct.
Second test is to clear temporary files in Internet Options (also under Tools) and then open second screen. Depending on your version of IE (assuming you are using IE), you may want to change your options to 'Check for new versions everytime you visit the page'. It is a crude fix, but usually works.
Other than those two, you will need someone more technically oriented than myself.
Good luck!
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.