By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,213 Members | 2,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,213 IT Pros & Developers. It's quick & easy.

Empty cookie!

P: n/a
Hi!

I have a login page where I have three different ways to authenticate a
user.

1. Use integrated authentication and read the server variable AUTH_USER and
then verify if this is a valid user from a database. If OK I write some
session cookies and then re-direct to another page placed in the same folder
(which will read the cookie and verify that it is valid). This works OK.

2. Use anonymous login where the user is typing in a username/password which
is checked against a database and if OK I write session cookies and then
re-direct to other page which reads this cookie. This also work OK.

3. Now we read another server variable that is set by a third party oracle
product (don't know much about this product but when I print the value of
the servervariable it is OK). I write some cookies and then redirect to
another page. When I read the cookie now it is empty. If I read the cookie
just before I do my re-direct it is OK but after the re-direct it is empty.

Do you have any sugestion why the cookie becomes emtpy after the re-direct
in the third case but not in the other two? It is the same code doing the
actual reading/writing of the cookies in all three options above.

Environment: W2k Server.

Regards

Aug 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hmm there is a reverse proxy involved together with the "Oracle
authentication product" I was talking about in option 3 of my original
posting which I think is the cookie eater :-). It seems to be a problem if I
don't specify a path for my cookies. If I add this code below it seems to
work. Don't know if there are any way to set this globally or if I have to
set the path everytime I set a cookie?

Dim key
For Each key in Response.Cookies
Response.Cookies(key).Path = "/"
Next

Regards

Aug 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.