----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Take a close look at the logs. I recently had a problem where the DNS and
the web server didn't agree on the domain name of the host running JServ.
One cookie was getting set by the webserver's domain, and one was being set
for an alias. It seemed like sessions weren't being set, but two were
actually being set, one for each domain pointing at that box.
Does that make sense?
> 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]
>
>
--
--------------------------------------------------------------
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]