logout fixes
diff --git a/startup/event_handlers.py b/startup/event_handlers.py
index 0efb403..5639139 100644
--- a/startup/event_handlers.py
+++ b/startup/event_handlers.py
@@ -43,6 +43,7 @@
 	# login from
 	if webnotes.form_dict.get('login_from'):
 		webnotes.session['data']['login_from'] = webnotes.form.getvalue('login_from')
+		webnotes.session_obj.update()
 
 	update_account_details()