Article View: borland.public.cppbuilder.internet.socket
Article #3026Sessions, cookies and authentication ...
From: noel
Date: Wed, 23 Nov 2005 18:25
Date: Wed, 23 Nov 2005 18:25
23 lines
1934 bytes
1934 bytes
Hell all ! I am building a HTTP server using Indy 9 & Borland C++ builder 6... I am working at implementing persistent sessions and there are a couple of things i am not sure to understand properly ... 1- My TIdHTTPServer component has the AutoStartSession and SessionTimeout set so that sessions are created automatically for each command handler request thread ... Now since Sessions use cookies in their implementation, what happens if the users has it's browser set not to accept any (or this particular) cookie ? Question 1: How can i detect if the browser rejected the cookie ? It seems that the session is created in any case and can't see how to detect if the cookie was accepted or not ? I use a login form and would like to maybe "fall back" to basic authentication if the user doesn't accept cookies ? Any suggestion for a better way to handle persistent sessions ? Thanks for any help !!! No�l
Technical Details
Message-ID:
<4384b3cd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f657453476b6054d,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII Date: Wed, 23 Nov 2005 13:25:10 -0500 From: noel <noel@teledata.qc.ca> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Sessions, cookies and authentication ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 207.96.139.132 Message-ID: <4384b3cd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132770253 207.96.139.132 (23 Nov 2005 10:24:13 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail