469,322 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

Empty cookie!

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
1 1850
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.

Similar topics

1 post views Thread by Wayno | last post: by
3 posts views Thread by tornado | last post: by
1 post views Thread by Adam Barker | last post: by
13 posts views Thread by Alexander Widera | last post: by
5 posts views Thread by Shapper | last post: by
6 posts views Thread by Michi Henning | last post: by
3 posts views Thread by =?Utf-8?B?Q2hhcmxlc0E=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.