----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Hi,
I seem to be having problems using sessions when cookies are disabled on my
browser. I am running Apache 1.3.12 on NT with Jserv 1.1.
What I have is a servlet which validates a username and password against
data held in an Oracle database. If the user is valid then the servlet
creates a new session for the user and redirects them to another servlet.
The URL to redirect to is also stored in the database.
Before doing anything, the second servlet checks for a session to make sure
the user has gone through the logon servlet first. If the session is there
and valid, the servlet proceeds, if a session isn't returned, the user
hasn't logged on or the session has timed out - either way, they will need
to logon again.
All this seems to be working fine when I have cookies enabled on my browser.
I also have the following in my zone.properties file:
session.useCookies=true
However, I would prefer not to use cookies if I can help it so I set the
above to false and disabled cookies in my browser. I also make sure that I
use URL re-writing when redirecting from the Logon servlet to the second
servlet:
res.sendRedirect( res.encodeRedirectUrl( result.getString(3) ) );
No session is now returned in the second servlet.
Can anyone help me with this ????
TIA
Lee
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]