Page 1 of 1
can you end with JS a cookie session you started with PHP
Posted: Sat Dec 06, 2014 7:32 am
by PHPHelpNeeded
Can one end with javascript a session you started with PHP?
Re: can you end with JS a cookie session you started with PH
Posted: Sat Dec 06, 2014 8:13 am
by Celauran
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
Posted: Sat Dec 06, 2014 12:13 pm
by Weirdan
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.