Re: [Phplib-users] No session_id or cookie if not authenticated.. how?
Brought to you by:
nhruby,
richardarcher
From: <li...@ye...> - 2002-12-03 22:46:52
|
Quoting Aric Caley <gre...@pe...>: > OK this may be simple but its eluding me: > > I have a single entry page for my application. > > I want parts of it protected, depending on what parameters are passed to > it. > > The unprotected parts I want accessible and not have a cookie set or a > session id put into all the urls. IE, having the default auth to 'nobody' > isnt what I want. > > How can I get it to *only* make a cookie/add session id's when somebody has > actualy really logged in? > Easiest way would be to only use page_open on pages you want to protect. The session would only be created first time someone hit one of these pages and auth timeouts could occur more often but it could work depending on your application. matt - |