aebstract Posted February 26, 2009 Share Posted February 26, 2009 Is there a way to destroy a session after you've navigated, let's say, 2 pages? example: page1: set session page2: session is set, showing info lala page3: session is set, showing info lala, session destroyed page4: no session but pages 2 and 3 could be anywhere in the website, no specific route, just 2 random pages away. Link to comment https://forums.phpfreaks.com/topic/147011-destroy-session-after-x-page-views/ Share on other sites More sharing options...
rhodesa Posted February 26, 2009 Share Posted February 26, 2009 create an include file, that is included on every page. have that include file increment a SESSION variable, and once it gets to the number you want, destroy the SESSION Link to comment https://forums.phpfreaks.com/topic/147011-destroy-session-after-x-page-views/#findComment-771795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.