diff http/src/luan/modules/http/Http.luan @ 609:24b05963ba62

shell "clear" button now clears the session
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 09 Dec 2015 18:12:16 -0700
parents 1368ca798ccc
children 53a50c70c5e2
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http.luan	Mon Dec 07 16:04:01 2015 -0700
+++ b/http/src/luan/modules/http/Http.luan	Wed Dec 09 18:12:16 2015 -0700
@@ -151,6 +151,10 @@
 	M.per_session_pages[page] = true
 end
 
+function M.clear_session()
+	M.request.java.getSession().removeAttribute("luan")
+end
+
 
 function M.uncache_site()
 	for k in pairs(Table.copy(Package.loaded)) do