I'm working on building a forum in PHP and am trying to include a feature that would log a user out after a certain amount of time. It would also direct them back to the login page after the elapsed time. I've built the forum using separate php pages for the connection, login, logout, index, header, footer and other pages. I include the connection and header php files at the top of every page. Where would I place a script to have it communicate throughout the forum and effectively timeout a user?
aritanks 0 Newbie Poster
LastMitch
pixelsoul 272 Red Pill Featured Poster
aritanks 0 Newbie Poster
lukas.vandendijssel 0 Light Poster
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.