sueirna 0 Report post Posted July 15, 2010 bila saya nak kluar dari page php tu... klik pada back (Ie Browser) dia akan masuk balik kat page...nampak tak secure la..macam mana saya nak clearkan cookie tu... Saya da cuba [quote]setcookie('user','',time()-3600)[/quote] tapi tak jadipun..agarnya saya salah letak tak...harap ada yang membantu. Quote Share this post Link to post Share on other sites
johnburn 6 Report post Posted July 15, 2010 bleh tunjuk script yg awk pkai untuk create cookie x? pasti ke cookie tu nama [b]user[/b]? Quote Share this post Link to post Share on other sites
sue_irna 1 Report post Posted August 2, 2010 [quote name='johnburn' date='15 July 2010 - 07:28 PM' timestamp='1279193284' post='1042027'] bleh tunjuk script yg awk pkai untuk create cookie x? pasti ke cookie tu nama [b]user[/b]? [/quote] maksud saya clear memory cache browser.....saya tak nak aktifkan button back and forward pada browser tu...ataupun bila tekan button back atau forward..dia papar "the page cannot be display"... mcm mana yerk? Quote Share this post Link to post Share on other sites
slier 28 Report post Posted August 2, 2010 (edited) simply check for some session at its initial load if session not exist (first time visit), create that session..and continue to serve de page if session exist (mean user already visit de page), do show 404 page u cant erase browser history the best way u can achieve this is by using javascript window.history.replace() command cause it will replace previous page in the window history object Edited August 2, 2010 by slier Quote Share this post Link to post Share on other sites