Jump to content

Problem with user session and register...


Recommended Posts

I need help ...

 

I have to develop an external system (such as homepage) but using prestashop connection.

 

I need to make the user registration through this external system that I will develop and save the data in the database prestashop, do not register users from prestashop directly like is normally. To make this is not so complicated, the problem are the sessions, I have no idea how I could to use a user's active session logged by means of my system and this session must to be recognized by prestashop, likewise on logout.

 

I know this is an aberration, but my client is inclosed in this request.

 

Any idea? Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

Hello there,

 

I'm kinda doing the same but the other way around. Meaning the login would be from other database than prestashop database. So, I believe that Prestashop system uses "cookies" instead of "sessions". Check the "prestashop/classes/Cookie.php" which is the "CookieCore" class.

 

Good luck

Link to comment
Share on other sites

Actually just require the config.inc.php file in your page and it will load the cookies and be kosher. I am pretty sure if you just load the cookie file, that it needs dependencies in other files that are not loaded.

Link to comment
Share on other sites

×
×
  • Create New...