denoteone Posted May 20, 2009 Share Posted May 20, 2009 if(isset($_COOKIE['ID_my_site'])) { show site }else{ redirect } is there any way to remove the cookie when the window or browser closes. so they have to log back in. Link to comment https://forums.phpfreaks.com/topic/158917-remove-cookie/ Share on other sites More sharing options...
GingerRobot Posted May 20, 2009 Share Posted May 20, 2009 If you're looking for this kind of behaviour, you'd be better off using sessions. Link to comment https://forums.phpfreaks.com/topic/158917-remove-cookie/#findComment-838123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.