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
Recommended Answers
Jump to PostThis will probably give you the answer here
http://www.daniweb.com/web-development/php/threads/124500/session-time-out-in-phpThe best place to put this would be in the header on every page so you can check the timeout every time they switch to another page.
All 4 Replies
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.