The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

javascript for deleting session cookies & page reload

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

11. October 2011, 23:15:29

dyancey

Posts: 8

javascript for deleting session cookies & page reload

I'm new to opera and would like to know if it's possible to create a simple bit of user javascript which will: 1) immediately delete/expire all current session cookies and 2) reload the current page after that has been done. Additionally, I'd like to be able to trigger this script with a custom opera button.

Thanks in advance for any insights on how this might be done.

17. October 2011, 01:11:04

spadija

Posts: 1643

I doubt this is possible with JavaScript, but it may be possible with Opera actions. operawiki has a few useful, if somewhat dated, pages about this. I don't see any action to delete cookies though.

21. October 2011, 17:40:02

dyancey

Posts: 8

Thanks for the reply - I'll look into the possibilities with Opera actions.

25. October 2011, 02:13:45

spadija

Posts: 1643

Nice! Copy the address of that link and change the number of "Delete & "s (it's url encoded) to change how many cookies it deletes. Also, you could probably use just "Select all & Delete" once to clear the whole list.

28. October 2011, 20:29:07

dyancey

Posts: 8

Thanks optimal81 and spadija - this may indeed work for me. Appreciate it!

Forums » General Opera topics » User JavaScript