can you end with JS a cookie session you started with PHP
Moderator: General Moderators
-
PHPHelpNeeded
- Forum Commoner
- Posts: 83
- Joined: Mon Nov 17, 2014 8:03 pm
can you end with JS a cookie session you started with PHP
Can one end with javascript a session you started with PHP?
Re: can you end with JS a cookie session you started with PH
Sessions? No. Sessions are server side, JS runs client side. Cookies are accessible to JS, though.
Re: can you end with JS a cookie session you started with PH
So resetting the session cookie on the client side will effectively close the session for that client. Session data on the server associated with that cookie will not be used anymore and will get garbage-collected eventually.