Re: session objects crossing applications

From: Date: Thu, 17 Jul 2003 17:20:01 +0000
Subject: Re: session objects crossing applications
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155653@lists.php.net to get a copy of this message
>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? by default, example.com/example and example.com/example_dev will both use cookies set for example.com. You will want to change the cookie parameters of your session, see 'path' in php.net/setcookie and php.net/session_set_cookie_params. Another option is to change your session name, so one is (for example) example_dev_sessionid and the other is example_sessionid. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#155653) next »