Jump to content

Session ID - Keep the same, after adding new session variable?


peter_anderson

Recommended Posts

Hello there,

 

I am in the process of coding a new ecommerce script, which loads the contents of the cart from the DB using the session ID.

 

I'm now at the part where the user logs in. Once they've logged in, the session variables (storeactive and email) are set. However, this changed the session id.

 

Is there any way to keep the session id the same, or any alternatives? Ideally, I don't want to rewrite too much.

 

Thanks in advance :)

When the user logs in and is verified you can kill the session and start a new one for them using the retrieved ID.

 

 

HTH

Teamaotmic

 

Thanks.

 

I'm not sure how I would do that? The docs on sessions is pretty small.

 

Could you give the peice of code to do this? I've set the system to POST the session id on the login form.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.