- when, for sure, new sessionID is generated?

on login and logout

- in which function (even in core files) is the place, where sessionID is 
geenrated?

oxSession::regenerateSessionId()

- 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)

oxSession::setBasket(); oxSession::getBasket()

- how can i get to old sessionID and new sessionID in own login function?

oxSession::getId();

Linas Kukulskis
Developer

[email protected]
Phone +370 37 333053
Fax +370 37 333054
www.oxid-esales.com


OXID eSales AG
Bertoldstraße 48, 79098 Freiburg, Germany

Lithuanian Division
K. Petrausko g. 26-316, Kaunas LT-44158, Lithuania


Sales tax identification number: DE 231 450 866
Board of directors authorized to represent the company:
Roland Fesenmayr (chairman), Eric Jankowfsky, Andrea Seeger
Chairman of the supervisory board: Harald Fuchs
Head office Freiburg: Bertoldstraße 48, 79098 Freiburg, Germany
Court of registration: Amtsgericht Freiburg i. Br., HRB 701648, Office 
reference number: 06/447/41949



The next Generation of Premium eCommerce


Latest version OXID eShop 4 as open source


________________________________________
From: [email protected] 
[[email protected]] on behalf of Tobias Merkl 
[[email protected]]
Sent: Thursday, August 04, 2011 10:54 AM
To: [email protected]
Subject: [oxid-dev-general] new session after logout/login

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
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to