You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ian Hunter <ih...@hunterweb.net> on 2003/05/08 22:24:17 UTC
How do i determine if a given session ID is currently a valid one?
I want to allow reporting access from a JSP app to a server running an
ASP-based reporting application. I'd like to pass the session ID as a
parameter to the ASP document, which would "call back" to the JSP container
to validate the session ID.
How do I validate a session Id? I'd like a JSP that works something like
this:
<%
if (someObject.IsSessionIdAValidOne (request.getParameter("sessionId")) {
%>
YES
<%
} else {
%>
NO
<% } %>
Am I out of luck? How else can I handle this?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do i determine if a given session ID is currently a valid one?
Posted by Ian Hunter <ih...@hunterweb.net>.
GREAT idea. You rock.
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, May 08, 2003 7:08 PM
Subject: Re: How do i determine if a given session ID is currently a valid
one?
> Well you might be able to kludge it by this:
> ASP calls back to:
> http://more/cowbell.jsp;jsessionid=MY_ID_HERE
>
> then in your JSP use method call request.isRequestedSessionIdValid().
>
> In that case - the jsp can then you session variables for that sessionid.
>
> -Tim
>
>
> Ian Hunter wrote:
> > I want to allow reporting access from a JSP app to a server running an
> > ASP-based reporting application. I'd like to pass the session ID as a
> > parameter to the ASP document, which would "call back" to the JSP
container
> > to validate the session ID.
> >
> > How do I validate a session Id? I'd like a JSP that works something
like
> > this:
> >
> > <%
> > if (someObject.IsSessionIdAValidOne (request.getParameter("sessionId"))
{
> > %>
> > YES
> > <%
> > } else {
> > %>
> > NO
> > <% } %>
> >
> > Am I out of luck? How else can I handle this?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do i determine if a given session ID is currently a valid
one?
Posted by Tim Funk <fu...@joedog.org>.
Well you might be able to kludge it by this:
ASP calls back to:
http://more/cowbell.jsp;jsessionid=MY_ID_HERE
then in your JSP use method call request.isRequestedSessionIdValid().
In that case - the jsp can then you session variables for that sessionid.
-Tim
Ian Hunter wrote:
> I want to allow reporting access from a JSP app to a server running an
> ASP-based reporting application. I'd like to pass the session ID as a
> parameter to the ASP document, which would "call back" to the JSP container
> to validate the session ID.
>
> How do I validate a session Id? I'd like a JSP that works something like
> this:
>
> <%
> if (someObject.IsSessionIdAValidOne (request.getParameter("sessionId")) {
> %>
> YES
> <%
> } else {
> %>
> NO
> <% } %>
>
> Am I out of luck? How else can I handle this?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org