PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
What is the best way of creating a unique session Id. I am creating a shopping cart but on that shopping cart user dont have to get register to buy anything so ther is no user name.
louie35 wrote:if you are going to use session just make sure the user accepts them first then do the cart thing.
set a session, then try to read it back.
Sorry, I can't quite follow your logic. When PHP starts a session, as aborint mentions, it automatically creates a unique session ID. See http://www.php.net/session and session_start()