Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Accessing session id number


Recommended Posts

Hi all. This is probably a really silly question but I cannot seem to extract the session id number in my code.


I have tried accessing it through session->id and also by $SID but neither of these seem to work.


What I need to do is send the session id off to a payment site so that they can return it to me and then log the user back on when he/she returns (I don't want to rely on cookies being present).


Any ideas, cheers John McAulay

Link to comment
Share on other sites

I needed to have the same functionality a while back... don't shoot me if I'm wrong but I recall doing something as easily as calling the function session_id() ??

Link to comment
Share on other sites

  • 3 months later...

in my install of osCommerce, i believe it is most often accomplished by using tep_session_id()


not sure what the "tep" prefix stands for, but that's what i've seen in the oscommerce code i installed.

FlashMOG - make multiplayer games in Flash/PHP!

Link to comment
Share on other sites


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

  • Create New...