Jump to content

Alternative for @session_start();


Mike89

Recommended Posts

Hello everyone,

I have faced this issue when creating a module.

It is forbidden to use @session_start(); in the code.

My intention is to get session_id(); to the code

Can you tell me what are the other methods I could try ?

I have tried 

Quote

Context::getContext()->cookie

also tried to use

Quote

Context::getContext()->smarty

as well because this id is available for the front end.

But now I am clueless and need some support.

Thank you in advance.

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