durusmail: quixote-users: possibly off topic: strange cookie behaviour
possibly off topic: strange cookie behaviour
2004-04-25
2004-05-05
2004-04-27
possibly off topic: strange cookie behaviour
Simon Cusack
2004-04-25
Hi all,

I am having a strange cookie problem that is probably not related to
Quixote but I am hoping this list might have some suggestions on how
to go about fixing it.

I use the standard Quixote Session mechanism for handling logins and
preferences, etc. I use _q_access on the first __init__ object to
check if they user is logged in, if not I redirect them to the login
page, so far no problems.

Deeper in the site I have some word documents that I return with the
type set to "Content-Type: text/richtext".

At the client end depending on the setup it can either open the
document in IE or launch word. I usually get them to change their
settings by:

Windows Explorer->Tools->Folder Options->File Types->*.doc->Advanced
then uncheck Browse in Same Window option

Now sometimes (and I mean only sometimes, it is very inconsistent)
when the Word launches the Cookie is not sent, the request is made but
no cookie means no login which redirects them to the login page which
means they are looking at the Login page in Word, word is helpfully in
HTML editing mode.

Very strange.  I am currently checking if the request is for a path
ending in .doc and if so then not requiring a login, this is far from
ideal but has been the only way I can consistently work around the
problem.

Does anybody have any other ideas about what may be going wrong?

Regards, Simon.



reply