Jump to content
Sign in to follow this  
sueirna

Clear Cookie In Php

Recommended Posts

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.

Share this post


Link to post
Share on other sites
[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?

Share this post


Link to post
Share on other sites
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 by slier

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...