What is the proper way to use sessions?

I have a forum on my site which I've coded from scratch but I've not been using sessions for the users and instead I've been using just cookies to determine if they're logged in or not. I know my current way isn't ideal so I thought I should research sessions as it seems to be the right way to do it.

Recommended Answers

All 2 Replies

Member Avatar for diafol

sessions are the way to do it. Forums depend on sessions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.