On Mon, Nov 12, 2001 at 09:16:51AM -0500, Geoff Talvola wrote:
> At 04:27 PM 11/11/01 +0100, Philipp Siegert wrote:
> >In the 0.6b2
> >release there is support for handling sessions without cookies at the costs
> >of uglier URLs. In PHP4 these ugly URLs are only used if the browser 
> >doesn't
> >support cookies. Is it possible to implement an intelligent mechanism in
> >webware which only uses ugly URLs if cookies are disabled? > 

> How do you detect if the browser has cookies enabled?

The PHPLib way seems to be that it always sends the session ID with the
URL at the first request, while also sending a cookie.  Then at
subsequent requests, it checks whether the cookie was received.  If yes,
it doesn't need the URL session ID so it stops sending it.  If no, it
continues sending the session ID in the URL.

Somehow it also manages to recover when cookies are turned off in the
middle of the session.  I'm not sure how.

The session management built into PHP 4 is a different beast; I'm not
sure what it does.

-- 
-Mike (Iron) Orr, [EMAIL PROTECTED]  (if mail problems: [EMAIL PROTECTED])
   http://iron.cx/     English * Esperanto * Russkiy * Deutsch * Espan~ol

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to