[thelist] any PHP session experts out there?

Carl J Meyer cjmeyer at npcc.net
Thu Dec 12 11:43:01 CST 2002


On Thu, 2002-12-12 at 07:35, Tom Dell'Aringa wrote:
> 1) I figured using the querystring would be $_QUERYSTRING or
> something, but I can't find that...how do I grab the query string
> vars the 'safe' way


> 2) I tried using this code on my user registration page to destroy
> the current session so the user could start a new one if they wanted
> to.. not sure its necessary (I guess they wouldn't re-register) but I
> wondered why the code didn't work:
> $_SESSION = array();
> session_destroy();
> I got the error:
> Warning: Trying to destroy uninitialized session

Did you call session_start() earlier in the same page where you are
calling session_destroy()?  You need to start the session (on that page)
before you destroy it, otherwise the page knows nothing about any


More information about the thelist mailing list