Changeset 857
- Timestamp:
- 08/21/07 13:50:26 (1 year ago)
- Files:
-
- trunk/config/xml/config.xml (modified) (1 diff)
- trunk/examples/config/xml/config.xml (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/session/stubSession.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/stubFrontController.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/xml/config.xml
r793 r857 9 9 <config name="net.stubbles.ipo.request.class" value="net.stubbles.ipo.request.stubWebRequest" /> 10 10 <config name="net.stubbles.ipo.session.class" value="net.stubbles.ipo.session.stubPHPSession" /> 11 <config name="net.stubbles.ipo.session.name" value="SID" />12 11 <config name="net.stubbles.service.jsonrpc.configfile" value="json-rpc-service.xml" /> 13 12 </xj:configuration> trunk/examples/config/xml/config.xml
r793 r857 9 9 <config name="net.stubbles.ipo.request.class" value="net.stubbles.ipo.request.stubWebRequest" /> 10 10 <config name="net.stubbles.ipo.session.class" value="net.stubbles.ipo.session.stubPHPSession" /> 11 <config name="net.stubbles.ipo.session.name" value="SID" />12 11 <config name="net.stubbles.service.jsonrpc.configfile" value="json-rpc-service.xml" /> 13 12 </xj:configuration> trunk/src/main/php/net/stubbles/ipo/session/stubSession.php
r388 r857 28 28 */ 29 29 const FINGERPRINT = '__stubbles_SessionFingerprint'; 30 /** 31 * default session name 32 */ 33 const DEFAULT_SESSION_NAME = 'PHPSESSID'; 30 34 31 35 /** trunk/src/main/php/net/stubbles/websites/stubFrontController.php
r737 r857 82 82 $this->createInstances(); 83 83 } 84 84 85 85 /** 86 86 * sets the event dispatcher to use … … 92 92 $this->dispatcher = $dispatcher; 93 93 } 94 94 95 95 /** 96 96 * creates the required instances … … 115 115 } 116 116 117 $this->session = new $className($this->request, stubRegistry::getConfig('net.stubbles.ipo.session.name', 'SID'));117 $this->session = new $className($this->request, stubRegistry::getConfig('net.stubbles.ipo.session.name', stubSession::DEFAULT_SESSION_NAME)); 118 118 if (($this->session instanceof stubSession) == false) { 119 119 throw new stubException('Configured session class is not an instance of stubSession.'); trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php
r850 r857 100 100 $xmlStreamWriter->writeStartElement('session'); 101 101 $xmlStreamWriter->writeElement('id', array(), $this->session->getId()); 102 $xmlStreamWriter->writeElement('name', array(), stubRegistry::getConfig('net.stubbles.ipo.session.name', stubSession::DEFAULT_SESSION_NAME)); 102 103 $xmlStreamWriter->writeElement('isNew', array(), (($this->session->isNew() == true) ? ('true') : ('false'))); 103 104 $xmlStreamWriter->writeStartElement('token');
