Hello guys, i'll like to extends default login() function from oxuser view.
In my own login() function i don't calling at the begining parent::login(...) but doing my nesseccesary stuff, like finding user in oxuser table and save in session user's name ( oxSession::setVar( 'usr', $this->oxuser__oxid->value ); ) But i also use 3-rd part script for connectiong with DB2. This script is need it for upgrade some information in DB2 database (it has been included in modules/functions.php). In my own login() function (for upgrade DB2 database by my 3-rd part class) in need to get to old sessionID and new sessionID - cause after login sessionID is changing. First 2 lines in login() looks like this: - oxUtilsServer::getInstance()->getOxCookie(oxSession::getInstance()->getName() - oxSession::getInstance()->getId() both return me old sessionID At the end of login() function (after success in finding user in db) i'm calling the same functions as before: - oxUtilsServer::getInstance()->getOxCookie(oxSession::getInstance()->getName() - oxSession::getInstance()->getId() ...and..i though that i should receive new seesionID, but hey.... no. The funny thing is that script doesn't see new sessionID, but browser cookie already has new seesionID :) My questions is : - when, for sure, new sessionID is generated? - in which function (even in core files) is the place, where sessionID is geenrated? - where is the place and logic for rewriting basket info (for non-login user) to basket of logged ins user (when you are not logged in you adding some articles to basket and you get some sessionID, after login you've got new sessionID and the same article in basket, so basket is beeing update also after login in) - how can i get to old sessionID and new sessionID in own login function? Kindest regards Tobias Merkl Software-Entwicklung ************************************* shoptimax GmbH Guntherstraße 45a 90461 Nürnberg Tel (09 11) 2 55 66 - 25 Fax (09 11) 2 55 66 - 29 eMail [email protected] Web www.shoptimax.de ************************************* Geschäftsführung: Friedrich Schreieck Ust.-IdNr.: DE 814340642 Amtsgericht Nürnberg HRB 21703 ************************************* _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
