----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Viehl Clemens wrote:

> IMHO No.
> 
> But why not spare your if-line and write
> HttpSession session = req.getSession (true);
> without your overhead?
> When you want to know wether your session is new or not, just ask.
> session.isNew (); // returns boolean
> 
> Regards
> 
> Clemens Viehl
> 
That's the exact same thing though.   You still have to say:
if (session.isNew())
  // do something



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to