Re: Sessions problem

From: Date: Tue, 27 May 2003 12:46:18 +0000
Subject: Re: Sessions problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149114@lists.php.net to get a copy of this message
If you wish is to carry sessions between .php and .html files, and it is your wish to have this work across both cookie enabled and disabled browsers, then yes, you will need to force at least some .html pages through PHP (I've configured this in Apache with a .htaccess file before), and you will need to have PHP complied with enable-trans-sid to take advantage of PHP's URL rewriting, which will pass the id around in URLs for MOST cases. So, given those two requirements, the question about speed is really irrelevant, since it's seems it's a case of must-have. In any case, I doubt you'd notice a difference unless the server was really under load, and you'll be even better off if you ONLY force the .html pages you NEED parsed through PHP... Justin on 25/05/03 3:57 AM, Bernardo de Barros Franco (bfranco@qwc.com.br) wrote: > Fellow PHP'ers, > > I developed a site that uses sessions with PHP. The problem is that some of > my pages are static HTML files. That way I am not able to pass the PHPSESSID > variable through them to the next PHP file. Because of that users with > session cookies disabled are unable to use my site correctly. I've read a > bit about urlrewriting or something like that but couldn't fully understand > nor get it to work. My doubt is if it I can change something in my > configuration that will allow the PHP processor to append the PHPSESSID to > my links in my HTML files or if I will have to turn all my files to PHP. If > the first option is possible how can that be done and what are the > consequences? Will it slow down my web serving since all files (including > static ones) are being parsed? Is it a perceptive difference or not? > > Thanks in advance, > Bernardo de Barros Franco > http://www.pagafacil.com.br > >

« previous php.general (#149114) next »