Sagewire Logo

Session Variables use in IE

2 Message(s) by 2 Author(s) originally posted in java beans


From: crazytora Date:   Tuesday, June 20, 2006
Hi I've a LogOut link which sets a session variable to null when
clicked. I've teh following code for it:

<%
String uname = (String) session.getAttribute("UID");
if(request.getSession().getAttribute("UID") != " " )
{
session.setAttribute("UID"," ");
%>

<br><br><center><H3>&nbsp; </H3>
<H3><font color ="#CCCCCC" face="Times New"><b>You have been Logged
Off Successfully.</b></font></H3>
</center>

<%
}
else
{
%>

<br><br><center><H3>&nbsp; </H3>
<H3><font color ="#CCCCCC" face="Times New"><b>You aren't Logged
In.</b></font></H3>
</center>

<%
}
%>

Now this works perfectly when FireFox is used but when I use IE,this
does not work.The control reaches the first if loop even if the user had
never logged in and there is no existing session variable and the
message "you've been logged off...."is printed.
Do let me know if you've any idea.
Thanks.


From: Chris Williams Date:   Wednesday, October 18, 2006
Offhand I can not say for certain, but I'm pretty sure sessions are
maintained using cookies -- is it possible that you've IE set to
reject cookies?

Chris.

wrote in message:
Hi I've a LogOut link which sets a session variable to null when
clicked. I've teh following code for it:
<%
String uname = (String) session.getAttribute("UID");
if(request.getSession().getAttribute("UID") != " " )
{
session.setAttribute("UID"," ");
%>

<br><br><center><H3>&nbsp; </H3>
<H3><font color ="#CCCCCC" face="Times New"><b>You have been Logged
Off Successfully.</b></font></H3>
</center>
<%
}
else
{
%>

<br><br><center><H3>&nbsp; </H3>
<H3><font color ="#CCCCCC" face="Times New"><b>You aren't Logged
In.</b></font></H3>
</center>
<%
}
%>

Now this works perfectly when FireFox is used but when I use IE,this
does not work.The control reaches the first if loop even if the user had
never logged in and there is no existing session variable and the
message "you've been logged off...."is printed.
Do let me know if you've any idea.
Thanks.






Next Message: About BDK and BeanBuilder


Blogs related to Session Variables use in IE

1. What are the four corner stones of OOP ? Abstraction ...
90 What are session variable in Servlets ? 91 What is client server computing ? 93 Why we use OOPS concepts? What is its advantage ? 94 What is the middleware ? What is the functionality of Webserver ? 95 Why Java is not 100 % pure OOPS ...

IE blows... news at 11
This is apparently a known issue with IE. I never knew this because, well, I never had occasion to try using this variable. Oh well, maybe it's fixed in 7.0. Nevertheless looks like I'll be using the session for tracking this info.

Understanding XForms: AJAX, XBL & XForms.org
_control, Internal variable for control , which should be used instead. ... the need to ship large binaries or have Java or ActiveX support enabled … and can ... it is still one of the best such engines for use within Internet Explorer. ...

Change Idle Session timeout ICX Session Timeout session.timeout
This might be confusing as earlier this profile option used to control forms as well as ... D so if your FND version is below D you might not see this variable. ... so longer idle session will drain JVM resource & can result in Java. ...

Re: A question of load . . .
Max dynamic log requests that CDR can make within one server session. ... Informix Storage Manager variables > ISM_DATA_POOL ISMData > ISM_LOG_POOL ... -verbose:jni > > # Classpath to use upon Java VM start-up (use _g version for ...

RE: A question of load . . .
Max dynamic log requests that CDR can make within one server session. ... 0 # Informix Storage Manager variables ISM_DATA_POOL ISMData ISM_LOG_POOL ISMLogs ... jni call #JVPARGS -verbose:jni # Classpath to use upon Java VM start-up (use ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional