Session problems..

From: Date: Mon, 06 Aug 2001 17:18:57 +0000
Subject: Session problems..
Groups: php.general 
Request: Send a blank email to php-general+get-61453@lists.php.net to get a copy of this message
Hi All, I am in trouble with the session handling of PHP. It works fine as long as the session_start is not inside a function or a class. My idea was to create a session class with a constructor calling session_start(). The variables inside the session class would hide the session vars. Proper methods for accessing and updating them were available. At the end I will call my class session update method just before the script ended to sync them with the PHP sessions. I have tried changing track_vars and globals, but problem seems to not be there, since calling session_start() from outside the class works. Is it a scope problem? Any help will be appreciated. Thanx. Sean C. McCarthy

« previous php.general (#61453) next »