logout from jsp page

Hi WM Gurus,
I’m new to webmethods and trying to create a “logout” link from my jsp page. I use "<webm:invoke serviceName=“wm.server:disconnect”>
service from my logout.jsp page. When I click on the link, I get the return status ($result) as “ok” but my session never ends.

I try to execute the abv service(wm.server:disconnect) from developer and it works fine.

Can please let me know what I’m missing here? Your help is highly appreciated!

Thanks,
Chary