Re: session objects crossing applications

From: Date: Thu, 17 Jul 2003 09:54:20 +0000
Subject: Re: session objects crossing applications
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155576@lists.php.net to get a copy of this message
Set up cookie parameters before calling session_start(): void session_set_cookie_params ( int lifetime [, string path [, string domain [, bool secure]]]) Jason wrote:
I need help.   I've got two copies of my application.    foobar and
foobar_dev When I go to http://foo.com/foobar/ a session is created and a database connection class is established and placed into this session. Then if within the same browser (using internet explorer) I go to http://foo.com/foobar_dev/ it will see not create a new database connection b/c it finds the one from http://foo.com/foobar. foobar and foobar_dev are suppose to point to different databases, but other than that all is identical. If I open a new internet explorer window via the windows Start menu all is fine. I thought if the url base is different then the session would be different? This is how it is with JSP. Am I miss-understanding something? Thanks for any assistance with this.


« previous php.general (#155576) next »