Request RE: [PHP4BETA] Docs for sessions?

From: Date: Thu, 22 Jul 1999 15:10:43 +0000
Subject: Request RE: [PHP4BETA] Docs for sessions?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2529@lists.php.net to get a copy of this message
-----Original Message----- From: Sascha Schumann [mailto:sascha@schumann.cx] Sent: 22 July 1999 12:13 To: Samuel Liddicott Cc: Matthew Clark; php4beta@lists.php.net Subject: Re: [PHP4BETA] Docs for sessions? >> and let the server internally re-write the URL (without it). ALSO if a page >> is requested without a sid, but the referring page was from the same site >> with a sid, then a redirect to a URL including the SID is sent. > >well, that's nice. You can do this with the session module >already. Thanks for the documention on sessions! This code at the top of the page is (or prepend) is what is required to get sessions to work with the URI_PATH method if (ereg('/([^/=]*)=([^.]*)/(.*)',GetEnv('REQUEST_URI'),$reg)) { session_name($reg[1]); session_id($reg[2]); } else { session_name("my_session_name"); } session_start(); Kick start? SO - what kick starts a session into GET mode if cookies are not supported? Any chance the query-string session-parser could have an option to parse the REQUEST_URI instead/as-well? I think that this method is worthwhile building in to PHP4 on account of it even works on sites with partially static content, and it is not shot down if a programmer forgets to add <?=sid;?> to their page. What do you think, Sascha? Sam

« previous php.version4 (#2529) next »