The directive just tells the container (e.g., Tomcat) not to automatically
create a session. See what happens if you defer the session creation until
the user accesses the log in page.

Paul

On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
>
> So just to clarify adding that to our page (it's the header.jsp that
> will appear on every page)...won't adversely affect anything regarding
> the session tracking we do when a user logs in?
>
> The header.jsp includes data that will be personalized once a user logs
> in.
>
> Jennie
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Paul Benedict
> Sent: 06 September 2007 15:54
> To: Struts Users Mailing List
> Subject: Re: JSessionID in URL on first request
>
> Jennie, I wasn't clear. My apologies. You don't typically need a session
> UNTIL a user logs in. So unless you want to track or store state for
> anonymous users, you could defer the session creation until sign in.
> Does that make sense?
>
> Paul
>
> On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
> >
> > On the website we have a user login and need to track the session of
> > each user. I assume if we put this in the page its going to void this.
> > Any other ideas?
> >
> > Thanks!
> > Jennie
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > On Behalf Of Paul Benedict
> > Sent: 06 September 2007 15:13
> > To: Struts Users Mailing List
> > Subject: Re: JSessionID in URL on first request
> >
> > Turn off automatic session creation, if you want. It's a JSP
> directive.
> > I think it's: <% page session="false" %>
> >
> > You don't need sessions until you actually want to track user state.
> > If you need to track user hits, you could turn on mod_tracking if
> > you're using HTTPD.
> >
> > Paul
> >
> > On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
> > >
> > > On the very first request to our website any html:rewrite tags or
> > > bean:include tags the URL gets rewritten with the JsessionID in it
> > > making the link invalid which then gives a page not found error.
> > >
> > > I understand why its doing this as its not sure yet whether cookies
> > > are enabled (cookies are enabled on my browser for certain) but I
> > > need
> >
> > > to know if there is anyway to get around it (other than hitting
> > > refresh which fixes the problem). So far the only way we've found to
>
> > > get around it is to not use those struts tags but surely there is a
> > better way?
> > >
> > > Jennie
> > >
> > >
> > >
> > > This e-mail (and any attachments) is confidential and may contain
> > > personal views which are not the views of the BBC unless
> > > specifically stated.
> > > If you have received it in error, please delete it from your system.
> > > Do not use, copy or disclose the information in any way nor act in
> > > reliance on it and notify the sender immediately. Please note that
> > > the
> >
> > > BBC monitors e-mails sent or received.
> > > Further communication will signify your consent to this.
> > >
> >
> >
> > This e-mail (and any attachments) is confidential and may contain
> > personal views which are not the views of the BBC unless specifically
> > stated.
> > If you have received it in error, please delete it from your system.
> > Do not use, copy or disclose the information in any way nor act in
> > reliance on it and notify the sender immediately. Please note that the
>
> > BBC monitors e-mails sent or received.
> > Further communication will signify your consent to this.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> This e-mail (and any attachments) is confidential and may contain
> personal views which are not the views of the BBC unless specifically
> stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately. Please note that the
> BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to