Avatar of Pete Winter
Pete Winter
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

PHP Session Delete

I am using the below code on my log out page.


Open in new window

It does work and when I visit pages that require a login it doesn't allow me in which is good, but when I go to view my view my browser cookies I still see a "PHPSESSID" cookie. Why is this? Why doesn't this session cookie get deleted from my browser?

I have also output the session and it is empty.


Open in new window

So overall it is working. Just curious why the actual cookie does not get removed from my browser. My browser is chrome if that makes any difference.

Avatar of undefined
Last Comment
Pete Winter

8/22/2022 - Mon