Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Cookies Question?

Quote Reply
Cookies Question?
Hi,

If I set GM to use cookies in the amin area, and the user has their cookie settings in their browser turned off, does GM automatically defualt to passing the session variable etc in the URL?

Cheers,
Regan.


Quote Reply
Re: Cookies Question? In reply to
Hi,

If you set cookies to 'Yes' in the admin only people that have cookies enabled will be able to login. Setting it to 'No' will make it so no cookie is set and the session is always passed in the URL. If you set cookie to 'User Option' login.cgi will read the cookie option from CGI input 'cookie' which can either be 'Yes' or 'No'.

The only way to do detection for cookies within a CGI is to set a cookie then redirect and try to get the cookie. This solution does not work on all servers and is a bit of overhead so we dropped the idea from GMail 1 to 2. There is a Javascript solution to checking to see if a user has cookies enabled, but of coarse this will only work if the user has Javascript enabled. If you want to know more about the Javascript solution please email me.

Cheers,

Scott

Quote Reply
Re: Cookies Question? In reply to
Thanks for that Scott, that's pretty clear. I think the easiest option is to let the user choose on or off - forcing it either way seems to become a bit of a hit and miss situation.

Thanks!
Regan.