----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Which logs do you mean ?? I have looked at the JServ logs and they don't
tell me anything about sessions or cookies.
I know that no cookies are being set as I have explicitly turned them off on
my browser and specified in my zone.properties file that use cookies is
false. I assumed that everything should be handled on the server side with
URL re-writing.
Everything I am doing is on my local machine (web server and Jserv,
development, access to web server through browser) so I'm not sure whether
DNS is my problem (although my boss is messing with our DNS at the minute
!!)
I don't think that it is my code as I have used this stuff on Weblogic
before. This wouldn't worry me too much but as this is used as a security
type feature, it would be silly to always assume that people will have
cookies enabled.
Thanks for your help !!
Lee
> -----Original Message-----
> From: Eric Hancock [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 31, 2000 8:17 PM
> To: Java Apache Users
> Subject: Re: Problems with sessions without cookies
>
> ----------------------------------------------------------------
> 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]
--
--------------------------------------------------------------
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]