I need help in making chat room
similar to facebook chat.
store in database userid based.
anybody plz help me.
thanks for reply,
write now my chat function store in
but i want to chat message store in userId based
Since userId's are specific to a logged in user and not a specific computer, a cookie does not seem like the way to go. Basic authentication in PHP is usually done with sessions, so you could just as well add the userId to the session.If the session times are too short, increase the session time.
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.