Latest news
Home » javaScript » unset php session using javascript

unset php session using javascript

It can solved by a simple javasctipt call on click. Use the php command unset() in javascript call.

onclick= “<?php  unset($_SESSION[‘shareupload’]); ?>”

Leave a Reply

x

Check Also

Restrict ckeditor to basic toolbar

We can use javascript or jquery to apply ckeditor configuration HTML <textarea id=”textarea” cols=”15″ name=”txtdesc” ...