Jump to content

Unique session id in prestashop using cookie


Zohaib-fk

Recommended Posts

Hi,

I want to get unique session id for each new browser session like session_id in normal php function.

From other forum posts and below documentation link, I come to know that prestashop using cookie for handling sessions.

http://doc.prestashop.com/display/PS16/Managing+Cookies

I tried different code samples but not getting unique browser session id like below code. Please advice.

PrestaShop Tutorials Videos [How to do Tasks]

 

@session_start();    
$session_id = session_id();
Edited by Zohaib-fk
Post Updated (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Hello Zohaib-fk,

I have this exact same issue right now.

How did you overcome this issue using cookies?

@session_start(); $session_id = session_id(); (without using session start)

I think now you have figured this out.

Regards,

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...