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?
Jump to Post
This will probably give you the answer here
The best place to put this would be in the header on every page so you can check the timeout every time they switch to …
All 4 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.