For Programmers: Free Programming Magazines  


Home > Archive > ASP > August 2007 > Empty cookie!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Empty cookie!
Hans

2007-08-06, 6:56 pm

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



Hans

2007-08-06, 6:56 pm

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



Bastard

2007-08-14, 8:26 pm

Pamela Anderson and Sarah M. Gellar Liks Pussy On Yacht!
http://www.eyrenet.com/PlayMovie.wmv?vid=726071

Mariah Carey and Christina Aguilera Poke Bottle In Pussy Movies!
http://www.eyrenet.com/MediaPlayer?q=726071

Catherine Z. Jones and Sarah M. Gellar playing with each other on film!
http://www.eyrenet.com/WindowsMediaPlayer.wmv?q=726071

Carmen Electra and Carmen Electra Lesbian Wrestling!
http://www.eyrenet.com/WindowsMedia...asp?clip=726071

Alyssa Milano and Ashlee Simpson , Petting Slits!
http://www.eyrenet.com/WatchTube?id=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com