Re: Sessions not remembered through pages

From: Date: Fri, 06 Oct 2000 14:39:34 +0000
Subject: Re: Sessions not remembered through pages
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-18885@lists.php.net to get a copy of this message
> Do you call session_start() on the second page? > It needs to be called on every page that uses sessions. FALSE. session_start() does not need to be called to start the session. (at least it works for me)... session_register("var") does the job... Put it on every page (on the top line, with no white space before the <? tag), and it should work if cookies are enabled. If you're worried about those who turn off cookies, either tell them they need cookies, or --enable-trans-id. If you're worried about the way the URL looks, stick the whole page in a single-frame frameset, and most people will never notice. -David David Knape Web Application / Multimedia Developer dave@tkdave.com

« previous php.general (#18885) next »