t/jsp application running under IE 5.5 and 6, using Tomcat
5.0. When I use Netscape 7 and heigher ( I havant checked for older
versions.) for running my application, and try to access the attributes set
within the session, I only get null and nothing else.
The complete scenario is like this.
I have a
Hi All,
I have a servlet/jsp application running under IE 5.5 and 6, using Tomcat
5.0. When I use Netscape 7 and heigher ( I havant checked for older
versions.) for running my application, and try to access the attributes set
within the session, I only get null and nothing else.
The complete
Did you ever get this to work? i am having the same problem (redirection
from a listener class?)
thanks
ravi gupta
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTE
Hello.
I don't know if I understood well, but if what you want is to free all
memory asociated to a session, you must use the invalidate() method.
Bye.
From: Edward King <[EMAIL PROTECTED]>
Reply-To: A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTE
no Login page comes and the person can enter the admin functionality. To prevent
>it I have set one parameter in session in LoginServlet:
session.setAttribute("Login", "Authenticated");
Now I am trying to get this in Admin Servlet. First time I manage to get the value of
Hi Edward,
Set the maxSessionTime which automatically destroy the session object.
This is the link which gives you more information
http://docs.sun.com/source/816-6774-10/prog_sso.html
Bajja Santhosh Gopalakrishna
i-flex solutions ltd., i-flex center
Millennium Tower - Gopalan
Hello every,
I puzzled a question,I open a Database and read so many records from it and put them
into Vector, then I put this Vector into Session.This will cost a lot of memory of
Computer.I guess Session should keep in Server Part and not in Client Part.Right? If
Session keep in Server Part
If you are declaring ANY variable references outside of your doPost or
doGet, which some people like to refer to as "global variables", you
will have this problem. It is incorrect to use any type of "global
variables" when using servlets.
Brian
==
3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: session duplication
Are you running your app in some kind of proxy env ? Maybe your proxy server
is not handling the requests properly.
Ritesh
> -Original Message-
> From: A mailing list about Java Server Pages specification and ref
ho
> Sent: Wednesday, May 19, 2004 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: session duplication
>
>
> Hi All .. I got a serious problem. I use cookie and session id to check
> user loged in to the systen
> Once I login, I get another person userid that not mine.
> Examp
Hi All .. I got a serious problem. I use cookie and session id to check
user loged in to the systen
Once I login, I get another person userid that not mine.
Example : I login as dnu, but after login authentication is success
(passed) another name (say : sbody) appeared at my PC. This problem also
//online number
When user's session is timeout or user closed IE,I remove user from this Hashtable.
My question is how to know user's status in Server?
Any idea will be appreciated!
Edward
===
To unsubscribe: mailto [
i believe that you can use that HttpSession only with servelets and JSPs
( I.e. withen a web container)
instead, you can render your applet inside a JSP using ,
and let the JSP take care of session management.
Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL
hi all,
I have an applet to be loaded into my broswer. Can i have the Session
tracking using the same HttpSession as in case of a JSP. Plz respond.
Thanx and Regards,
KR Kumar
===
To unsubscribe: mailto [EMAIL PROTECTED
sion.
HTH
John
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] Behalf Of manjunath
Sent: Saturday, June 21, 2003 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Session not accessible
session communication between cross cont
LDAP is perfectly designed for this use. A properly setup LDAP server
offers you a single authentication point for many different applications.
What happens is that you create an authentication record in the LDAP user
for each application that you want the user to access. The user's name and
pass
session communication between cross context is not allowed . this by design. An ISP
hosting jsp site will different context for different customers. these sessions should
NOT communicate.
In this case for authenticating to different contexts at single log on , use third
party authentication
Yee,
Can you please suggest some solution for this problem
other than keeping the applications in the same session.
The thing is that these applications are developed by
different different groups in my organisation and hence
deployment takes place in different contexts. As authentication
is
vtr,
You wrote:
>The JSP and Servlet are in different context in a TOMCAT 1.4.1.
webserver.
This is your problem. Sessions are maintained on a context level by
the app server. Only JSPs and Servlets within the same context can access
the same session insta
Hi all,
I have a login JSP where in I set the session variable when I try to access the
session from another report
servlet the session variable is not accessible and also the getSession method returns
different values
every time . I have tried using true and flase in the getSession.The JSP
I am transporting the one webapp which was running on IIS+Tomcat3.x to Tomcat4.1.24.
I have used SSL session using HTTPS for login and some user specific jsp pages. I
maintains session using HttpSession. there are some non-SSL HTTP pages where i access
session variables. I am getting the
Peter,
You might really want to reconsider storing your result set in the session.
This approach will not scale very well and is apt to cause your application
server to run out of memory. If the number of users gets large, you will be
consuming a large amount of memory just to store the result
CTED]
Sent: Mon 3/10/2003 12:28 PM
To: [EMAIL PROTECTED]
Cc:
Subject: Re: Session listener
You can use the HttpSessionListener interface. In case the session is
invalidated or canceled otherwise, the code to reinstate the db can be
You can use the HttpSessionListener interface. In case the session is
invalidated or canceled otherwise, the code to reinstate the db can be done
inside the method sessionDestroyed(). Remember you need to set your
conteiner to register the implementing class to receive the events.
Regards,
Partha
2 methods
1)put it into the Database but dont commit it until you log out (of the sesssion)2)dont put it into the DB until you are absolutely positively sure you want it in there(when you logout of the session)Makes Sense?
Martin Gainty
Dear All,
I'm fairly sure this has been mentioned previously, but I cannot find
any discussion in the archives.
The site I am developing has a standard shopping cart object implemented
within a session object. Whenever a user adds an item to his shopping
cart, it is temporarily removed fro
Dear Sir/Madam,
Our Domain (psl.polarinc.com) has been changed to pil.polarinc.com.Pl send your emails
on changed
address as pil.polarinc.com instead of psl.polarinc.com
For example: if you want to send your email to
nk(username)as [EMAIL PROTECTED],now you pl send
on [EMAIL PROTECTED]
Inconven
hi all
is there any technique to find the session data in iplanet webserver that has jsp's
and servlets at a particular point of time
i.e.
value of all httpsession objects
Regards
Peter
==To
unsubscribe: mailto [
user log out or
session expires. the sessionDestroy method will delete that user from the
global hashtable.
Then, I need C.jsp to display the currently logged on users.
So far I can only populate the hashtable but CAN NOT remove any user when
the user's session invalidated. So even a user logge
returns session attribute as null
Hi
My web application has both HTTP and HTTPS jsp pages.
I create session in HTTPS page. and use the same
throughout. But i have come across strange problem in
Tomcat4.0. When i try to access session attribute in
HTTP page , it returns null and the user will be
logged
Hi
My web application has both HTTP and HTTPS jsp pages.
I create session in HTTPS page. and use the same
throughout. But i have come across strange problem in
Tomcat4.0. When i try to access session attribute in
HTTP page , it returns null and the user will be
logged off. This behavior was not
w the
method invalidateSession, but can I store in my data structure the
pageContext to later obtain the session and invalidate it? is correct?
I hope that I had explain my problem correctly.
Thanks in advance,
Luis
=
23, 2003 4:37 AM
To: [EMAIL PROTECTED]
Subject: Other users session invalidation
Hi all,
I an implementing a web application in which, among other things, the
app. administrator has a web interface to list all the active sessions
and invalidate any of them. Now, I mantain a data estructure to
any method to obtain all the active sessions.
My second question is how to invalidate the sessions, I mean, I know the
method invalidateSession, but can I store in my data structure the
pageContext to later obtain the session and invalidate it? is correct?
I hope that I had explain my problem
Does HttpSessionListener works with servlet2.2 ? We have iPlanet web server
6. It does not support jsp1.2 and servlet2.3...
How do you find values in HttpSessonListener? Can you be a bit specific?
Say, if I store set session variable useName with the value "abc". How do
I get tha
:32 AM
Subject: How to get values of all session variable--application wide?
> I am trying to implement a admin jsp page which display all ACTIVE users
at
> the moment. Is it possible to somehow use session mechnism to implement
> that?
>
> For example:
>
> User A login with
get values of all session variable--application
wide?
I also had the same requirement and tried using a sessiontag available in
apache-jakarta site
but not to of any use .
I'll be glad to know if you succeed in this.(presently i am using a batabase
approach
2:32 AM
Subject: How to get values of all session variable--application wide?
> I am trying to implement a admin jsp page which display all ACTIVE users
at
> the moment. Is it possible to somehow use session mechnism to implement
> that?
>
> For example:
>
> User A login with t
I am trying to implement a admin jsp page which display all ACTIVE users at
the moment. Is it possible to somehow use session mechnism to implement
that?
For example:
User A login with the user name "UA" and that user name is stored in a
session variable "loginName".
It is important to make a difference between a user session and a HTTP
session. Many user sessions on the same browser instance will be just one
HTTP session. session.setMaxInactiveInterval allows U to set a idle
timeout(timeout between 2 successive requests) on the HTTP session. One way
to handle
. Sent: Wednesday, 18 December, 2002 12:11 AM To:
> [EMAIL PROTECTED] Subject: session timeout setting
>
>
> I have a site written in JSP that uses session info to validate user's
> sessions. I want to change the default timeout of the session from 60
> mins but I'm not
12:11 AM
To: [EMAIL PROTECTED]
Subject: session timeout setting
I have a site written in JSP that uses session info to validate user's
sessions. I want to change the default timeout of the session from 60 mins
but I'm not sure what is controlling this or how/where to change it. Here
i think you can check this article:
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html
> -Original Message-
> From: Christian Hamann L [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 8:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Controlling sessi
I only use a session variable, Tomcat does the cookie work, and I only check
if the user variable exist in the session.
After the time of inactivity, Tomcat closes the session and the user must
revalidate.
I dont know if is the same that you do.
Josep
En/na Kenny G. Dubuisson, Jr. ha
Will this keep it from generating a new session ID every 60 mins? Thanks
for the quick response.
Kenny
- Original Message -
From: "Josep R. Raurell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 10:24 AM
Subject: Re: session timeout s
You can put this in your code:
session.setMaxInactiveInterval(time); // time in seconds
Josep R. Raurell
En/na Kenny G. Dubuisson, Jr. ha escrit:
I have a site written in JSP that uses session info to validate user's
sessions. I want to change the default timeout of the session fr
I have a site written in JSP that uses session info to validate user's
sessions. I want to change the default timeout of the session from 60 mins
but I'm not sure what is controlling this or how/where to change it. Here
is more info to help figure this out...if anyone has any ide
Hi Christian,
this is exactly what session timeouts are made for. HTTP
is request-response based, ie. a statusless protocol, so
if the user doesn't log out as designed (giving your app
a chance to call session.invalidate() somewhere), there
is no means to tell if he is still connected or no
TED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Controlling session when user is out
>Date: Fri, 13 Dec 2002 10:26:22 -0500
>MIME-Version: 1.0
>Received: from mc5-f25.law1.hotmail
Hi All
I have applications in my Application Server, which everybody are connecting
to database, for some applications i use beans to manage information, but
whne the user close the browser i dont know how can control his session, i
can put a button for inavlidate sessions, but the user dont use
Hi,
I would recommmend you use a javabean,this java bean call the session.
perpaps it will be better.
¡¡ ¡¡J.H,Feng
¡¡ ¡¡2002-11-29
Original Message
From: [EMAIL PROTECTED]
>why do you want to pass
yes man u can
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
htt
why do you want to pass the session object. each session object will have a
session id. you can get this in jsp by simply invoking session object
but there is no reason why you should set this to a java class. think can
help you if you are clear in your reqr..
Regards
Ramesh Kesavanarayanan
Hi
Can i pass the seeion object from jsp page to a java class and
in java class can i use that session object as in jsp page
give me the details
Thanks you
===
To unsubscribe: mailto [EMAIL PROTECTED] with body
In netscape, if you are not using the default port for http and https, when
it switches from http to https or from https to http a new session object
will be created. This because the session cookie includes the port no. too.
To avoid this, try setting the cookieDomain to the hostname. In
Hi everybody,
First of all thank you all for responding to my previous questions.
I have a problem for using SSL. There is a session object passing to a jsp
page in secure server. When coming back from
secure server I'll lose the content of the object. Does anybody know how to
keep the obj
invalidate . invalidates the session(for want of a better wordage)
he just wants to remove teh bean. check on removeAttribute and
removeValue(for some reason this works in some environments even tho its
deprecated)
-Original Message-
From: A mailing list about Java Server Pages
Richard Yee wrote:
Alireza,
Take a look at the JavaDoc for javax.servlet.http.HttpSession. There is a
method called removeAttribute() that you can use to remove the object from
your session. You can get the session object by calling
HttpServletRequest.getSession().
Or if you want a non-Java
Alireza,
My prior response gave you the instructions on how to remove an object from
your session. you can use Peter's method to completely wipe out the current
session. Also, you can just use the implicit session variable rather than
getting it using HttpServletRequest.getSession().
Re
Alireza,
Take a look at the JavaDoc for javax.servlet.http.HttpSession. There is a
method called removeAttribute() that you can use to remove the object from
your session. You can get the session object by calling
HttpServletRequest.getSession().
Regards,
Richard
At 04:13 PM 11/8/2002 -0500
session.invalidate()
Regards,
Peter Dolukhanov
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:JSP-INTEREST@;JAVA.SUN.COM] On Behalf Of Alireza Nahavandi
Sent: 08 November 2002 21:13
To: [EMAIL PROTECTED]
Subject: Removing session
Hi every body,
I have a couple of jsp pages using a session object :
At one point after doing some process I need to remove this object. How can
I do this ?
Thank you in advance
===
To unsubscribe: mailto [EMAIL
t;
> Now aint that gonna suck?
>
> > -Original Message-
> > From: Monte Gardner [SMTP:[EMAIL PROTECTED]]
> > Sent: 31 October 2002 03:57
> > To: [EMAIL PROTECTED]
> > Subject: Re: session nonpersistence
> >
> > I think I may have found t
Some containers allow you to set specific attributes for the session cookies. You
could set a cookie domain of ".addr.com" so that your session cookie will flow back to
any of the host names within a domain.
-Original Message-
From: Adrian Janssen [mailto:ajanssen@;TRUWORTHS.C
IL PROTECTED]
> Subject: Re: session nonpersistence
>
> I think I may have found the problem. My webserver
> (I rent space on a commercial webserver) does a strange thing
> with regards to URL's:
> when I type in "www.addr.com/~mgardne/somepage.html"
> the brows
t;
> --Monte Glenn Gardner
>
>
> On Wed, 30 Oct 2002, Nimmons, Buster wrote:
>
> > Also, if he jsp pages are in different web apps then each web application
> > gets it's own session object and the objects are not replicated
> >
> > -Original Message-
Then they are in the same web-app (probably default)
-Original Message-
From: Monte Gardner [mailto:Monte.Gardner@;ASU.EDU]
Sent: Wednesday, October 30, 2002 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: session nonpersistence
soemoen else mentioned something about this. How do I tell if
web application
> gets it's own session object and the objects are not replicated
>
> -Original Message-
> From: Shawn Bayern [mailto:bayern@;ESSENTIALLY.NET]
> Sent: Wednesday, October 30, 2002 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: session nonpersistence
>
>
&
Also, if he jsp pages are in different web apps then each web application
gets it's own session object and the objects are not replicated
-Original Message-
From: Shawn Bayern [mailto:bayern@;ESSENTIALLY.NET]
Sent: Wednesday, October 30, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subjec
;id")
>
> Hope this helps.
>
> -Ursprüngliche Nachricht-
> Von: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM] Im Auftrag von Monte Gardner
> Gesendet: Mittwoch, 30. Oktober 2002 15:14
> An: [EMAIL PROTECTED]
te Gardner
Gesendet: Mittwoch, 30. Oktober 2002 15:14
An: [EMAIL PROTECTED]
Betreff: session nonpersistence
I have a series of JSP pages that begin with a standard userid/password
login. The page that receives the login request (shop.jsp) stores the
id in the session like this
session.setAttribu
On Wed, 30 Oct 2002, Monte Gardner wrote:
> I have a series of JSP pages that begin with a standard
> userid/password login. The page that receives the login
> request (shop.jsp) stores the id in the session like this
> session.setAttribute("id",id);
> when I print o
I have a series of JSP pages that begin with a standard
userid/password login. The page that receives the login
request (shop.jsp) stores the id in the session like this
session.setAttribute("id",id);
when I print out
session.getAttribute("id");
on the same page, it print
Hi ,
I''ve used this particular tag for counting active sessions
the jsp is as follows
<%@ page import="java.util.Date"%>
<%@ page import="java.util.Locale"%>
<%@ page import="java.util.*,java.text.*"%>
<%@ page session="true
Hi all,
I am facing a strange problem in my application. The problem is:
Iam having an JSP page in which, iam storing a value into http session. Then iam
redirecting to a servlet, using sendRedirect method. In the redirected servlet, iam
trying to retrieve the value from the session
Hi Randie,
I think this is a behavior that you might expect with most
servlet-containers.
The session-timeout for most servlet-containers is normally managed by
some clean-up thread. This is invoked after every few minutes to remove
any session objects that have expired.
So the time-out of your
hi guys,
i tried to investigate this behavior to find out what went wrong and
i've come up with
this information...when i open 2 browsers with difference of less
than 1 minute on each
opening there session will both expire at the same time.
while if i open 2 browser
what happen when session expires. this scenario
works fine, my session
was invalidated after session timeout and the sessionlistener was
notified.
my problem is when i access my web application by using two browsers
and let the
1st browser remain idle until session expires. the 2nd
Randie,
You can set it in the web.xml
1
Peace,
Jay
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevan
hi,
is this the only way i can set session timeout on every request?
HttpSession.setMaxInactiveInterval(int interval)
thanks in advance
randie
===
To unsubscribe: mailto [EMAIL PROTECTED] with body
I've S'ed TFW and the FA but I can't find a discussion of this.
What's the best way to test for session state in a JSP? I've been reading a
session attribute and if it returns null I send the user to a "You timed
out" page. This works OK as far as the view
ence <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How to create a session object other than "session"
>Date: Fri, 9 Aug 2002 17:11:12 -0500
>MIME-Version: 1.0
>Received: from mc2-f14.law16.hotmail.com ([65.54.237.21]) by mc2-s9.law16.hotmail.com with Microsoft
You are doing a very minor mistake. You have defined the currSession
variable in p1.jsp and using it in p2.jsp. Obviously it will give variable
not defined error since its not defined in p2.jsp. Remember p1.jsp and
p2.jsp are two different files.
Whereas the session variable is a implicit object
I am testing a session object so
I created
p1.jsp with the snippets:
<%
HttpSession currSession = request.getSession(true)
currSession.setMaxInactiveInterval(3600);
currSession.setAttribute("user", Name);
currSession.setAttribute("id", ID);
PROTECTED]
Subject: Re: attaching methods to application and session o bjects
I do not think websphere and weblogic does that.
so the solution would not be portable at all.
It is a pitty that guys at sun or sevlet engine implementors did not think
of that...(YET !)
-Original Message-
From
, 2002 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] attaching methods to application and session
objects
You can very well do it. But in order to use the session class which you
created, you need to register it into your server. Atleast iPlanet provide
this facility.
-Original Message
You can very well do it. But in order to use the session class which you
created, you need to register it into your server. Atleast iPlanet provide
this facility.
-Original Message-
From: Cengiz KAYAY [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 3:41 AM
To: [EMAIL PROTECTED
Sorry but I did not get it. Can u be more specific?
Thanks
-Original Message-
From: ? ?? [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 10:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] attaching methods to application and session
objects
you can use it like request
you can use it like request directly.
session.set*()
session.get*()
- Original Message -
From: "Cengiz KAYAY" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 4:40 PM
Subject: attaching methods to application and session objects
Hi all;
I have a question about HttpSession.
I would like to put some methods into the session object. Cause the
HttpSession is only an interface and underlying servlet engine does
implement it. How Can I do such a thing if it is any possible ?
so, Can I do that ?
HttpSession session
Pl try forward instead of sendredirect that will be better choice.
-
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "sig
mailing Subject: Re: session error
list about Java
Server Pages
specification and
reference
07/17/02 11:27 AM
Please respond to A
jsp:forword is working fine
thanks
Rakesh Menon
<[EMAIL PROTECTED]To: [EMAIL PROTECTED]
o.in>cc:
Subject: Re: session
]
Subject: session error
hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
session.putValue("utype",utype);
and in all other pages(like emp.jsp) i getValue.
String utype = (String)session.getValue("utype"
Hi Vaishali,
I dont think you should be getting a page not found due to the value
being put in the session or being retreived from it. Are you able to
access any page at all after the login page? What is the exact error
code thrown on the browser ?
Regards,
Ritesh
- Original Message
hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
session.putValue("utype",utype);
and in all other pages(like emp.jsp) i getValue.
String utype = (String)session.getValue("utype");
if (ut
ells out that the scope of a session is one application:
SRV.7.3 Session Scope
HttpSession objects must be scoped at the application (or servlet
context) level. The underlying mechanism, such as the cookie used to
establish the session, can be the same for different contexts, but
the
PROTECTED]> wrote:
> Hiren Dossani wrote:
>> hello,
>>
>> i am setting a session attribute in a jsp page. the location of this jsp page
>> is in webapps/base directory of the web server.
>>
>> i am not too sure if the same session attribute could be ret
Hiren Dossani wrote:
> hello,
>
> i am setting a session attribute in a jsp page. the location of this jsp page is in
>webapps/base directory of the web server.
>
> i am not too sure if the same session attribute could be retrieved in a servlet
>which is in another cont
hello,
i am setting a session attribute in a jsp page. the location of this jsp page is in
webapps/base directory of the web server.
i am not too sure if the same session attribute could be retrieved in a servlet which
is in another context. e.g. the servlet location is in
webapps/esab/WEB
1 - 100 of 1439 matches
Mail list logo