Re: PHP4 & sessions Questions

From: Date: Fri, 30 Jun 2000 21:28:11 +0000
Subject: Re: PHP4 & sessions Questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4162@lists.php.net to get a copy of this message
In article <B57920E8.10B94%thomas@neweve.com>, thomas@neweve.com (Thomas Deliduka) wrote: > First the question: > the session_start() function, must this be done at the top of every page > on the site; something that should be put into a header.inc file? Every page that uses sessions, yes. > http://www.domain.com/<? echo $directory; ?> > > it works perfectly, it outputs: >http://www.domain.com/mydirectory/ > > Well, with --enable-trans-sid on and this auto_start happening I get this as > an output: > > > http://www.domain.com/&PHPSESSID=763038de1adfc7bbb955611686a23e65004-20 That's not good. Maybe a short-term solution would be to echo the whole URL... echo "http://www.domain.com/$directory?junk=1"; and then PHP will add the &PHPSESSID stuff on for you. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#4162) next »