On Tue, 2004-04-13 at 15:39, Scott Bronson wrote: > On Fri, 2004-04-09 at 16:01, Robert Cummings wrote: > > If they're both on the same server then there's nothing stopping you > > from loading Suirrel mail's session data in the other application and > > nothing stopping you from hacking squirrel mail to load the other > > session's data. Since both are on the same server, BOTH session IDs > > should be available to your script if they are using cookies. If; > > however, they are using URL rewriting, then there is more trickery, > > either way it IS possible. Even if they're on seprate servers it is > > possible via certain tricks. > > Well, maybe I'm being truly dense... Both apps are running on the > server, I have access to both session IDs, and I'm not using any > rewriting. > > Did you take a look at the code I posted? > http://marc.theaimsgroup.com/?l=php-general&m=108150342911095&w=2 > > The problem is that once I start a session I am stuck with its data > for the rest of the request. I haven't figured out a way to close > that session and then open another one. > > Or, maybe, the problem is that I can't figure out any way of retrieving > the session data that doesn't involve calling session_start. > > Am I missing something obvious? Thanks,
AFAIK you can't open two different sessions in the same request. I'm surprised you don't get an error. That said, there's nothing stopping your from directly reading the session data file (wherever you configured it to be in your php.ini) and unserializing it's contents yourself. HTH, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php