Hi,

Here is  a snippet from the jsp1.1 specs explaning this..
"Snippet"
2.7.1.1 Syntax
<%@ page page_directive_attr_list %>
page_directive_attr_list ::= { language=" scriptingLanguage"}
{ extends=" className"}
{ import=" importList"}
{ session="true|false" }

session Indicates that the page requires participation in an (http) session.
If "true" then the implicit script language variable named
"session" of type javax.servlet.http.HttpSession
references the current/new session for the page.
If "false" then the page does not participate in a session; the
"session" implicit variable is unavailable, and any reference to it
within the body of the JSP page is illegal and shall result in a fatal
translation error.
Default is "true".

regds,
Gokul


----- Original Message -----
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 6:11 PM
Subject: [SERVLET-INTEREST] Stopping sessions in an app


> >> I think untill you call the method getSession() you do not
> >> create a session.
> >> So just do not call this method.
>
> >Looks like this isn't true.  We don't call getSession
> >anywere in our code and still the cookie appears every
> >time the application is used.
>
> You do call it - if you use JSP and you don't explicitly turn off
> session creation on the JSP page then the page will automatically call
> this method for you.
>
> Sorry - there's nothing you can do about it except turning it off on
> every JSP page.
>
> Well - there is one thing: have all your requests go to a servlet and
> have the servlet include() the JSP pages - since include()d pages
> cannot alter headers your page should not be able to create the
> cookie.
>
> I've never tried that - but it should work.
>
>
> Nic
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to