Re: redirect and getSession(true).isNew()
Zerbe John W <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Two things: 1) by default your login.jsp creates a new session unless you explicitly tell it not to. <%@ page language="java" session="false" %> 2) you could try to get an Attribute from the session. If your particular attribute doesn't exist in the session, you can assume that it is "new". -----Original Message----- From: Peter Maas [mailto:[email protected]] Sent: Friday, February 28, 2003 4:32 AM To: [email protected] Subject: redirect and getSession(true).isNew() Hi, it seems that a redirect automatically creates a new session, how can this be avoided? say I have the following setup: login.jsp --> only thing it does is redirect to a servlet what do I have to do to let the servlet know this is, or can be a new session? gr, P DISCLAIMER: The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.